Changes in directory llvm/include/llvm/Target:
TargetAsmInfo.h updated: 1.5 -> 1.6 --- Log message: Give TargetAsmInfo a virtual dtor, add a new getSectionForFunction method. --- Diffs of the changes: (+10 -2) TargetAsmInfo.h | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) Index: llvm/include/llvm/Target/TargetAsmInfo.h diff -u llvm/include/llvm/Target/TargetAsmInfo.h:1.5 llvm/include/llvm/Target/TargetAsmInfo.h:1.6 --- llvm/include/llvm/Target/TargetAsmInfo.h:1.5 Mon Sep 25 22:38:18 2006 +++ llvm/include/llvm/Target/TargetAsmInfo.h Wed Oct 4 19:35:16 2006 @@ -262,10 +262,18 @@ /// const char *DwarfMacInfoSection; // Defaults to ".debug_macinfo". - public: TargetAsmInfo(); - + virtual ~TargetAsmInfo(); + + /// getSectionForFunction - Return the section that we should emit the + /// specified function body into. This defaults to 'TextSection'. This + /// should most likely be overridden by the target to put linkonce/weak + /// functions into special sections. + virtual const char *getSectionForFunction(const Function &F) const { + return TextSection; + } + // // Accessors. // _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits