Changes in directory llvm/include/llvm/CodeGen:
AsmPrinter.h updated: 1.52 -> 1.53 --- Log message: Basic support for getGlobalLinkName. --- Diffs of the changes: (+8 -1) AsmPrinter.h | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletion(-) Index: llvm/include/llvm/CodeGen/AsmPrinter.h diff -u llvm/include/llvm/CodeGen/AsmPrinter.h:1.52 llvm/include/llvm/CodeGen/AsmPrinter.h:1.53 --- llvm/include/llvm/CodeGen/AsmPrinter.h:1.52 Wed Oct 4 22:00:37 2006 +++ llvm/include/llvm/CodeGen/AsmPrinter.h Tue Oct 17 08:41:07 2006 @@ -99,6 +99,13 @@ /// specified global, returned in log form. This includes an explicitly /// requested alignment (if the global has one). unsigned getPreferredAlignmentLog(const GlobalVariable *GV) const; + + /// getGlobalLinkName - Returns the asm/link name of of the specified + /// global variable. Should be overridden by each target asm printer to + /// generate the appropriate value. + virtual void getGlobalLinkName(const GlobalVariable *GV, + std::string &LinkName); + protected: /// doInitialization - Set up the AsmPrinter when we are working on a new /// module. If your pass overrides this, it must make sure to explicitly @@ -167,7 +174,7 @@ /// special global used by LLVM. If so, emit it and return true, otherwise /// do nothing and return false. bool EmitSpecialLLVMGlobal(const GlobalVariable *GV); - + /// EmitAlignment - Emit an alignment directive to the specified power of /// two boundary. For example, if you pass in 3 here, you will get an 8 /// byte alignment. If a global value is specified, and if that global has _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits