diff options
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r-- | include/llvm/CodeGen/AsmPrinter.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index 6ccef8c..45ea5d8 100644 --- a/include/llvm/CodeGen/AsmPrinter.h +++ b/include/llvm/CodeGen/AsmPrinter.h @@ -32,6 +32,7 @@ namespace llvm { class MachineConstantPoolValue; class MachineModuleInfo; class Mangler; + class Section; class TargetAsmInfo; class Type; class raw_ostream; @@ -127,7 +128,11 @@ namespace llvm { /// are the same. /// void SwitchToDataSection(const char *NewSection, const GlobalValue *GV = NULL); - + + /// SwitchToSection - Switch to the specified section of the executable if + /// we are not already in it! + void SwitchToSection(const Section* NS); + /// 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. |