diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-09-24 22:12:10 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-09-24 22:12:10 +0000 |
commit | 801e0fd4ead5fe89dc7ced7f7d6c4278a607f580 (patch) | |
tree | babe952c23545f7ce13d6dfa1e6b808fedb26c83 /include/llvm/CodeGen | |
parent | d913a1b0c15b2d96432fbcf712eac85ad705eca8 (diff) | |
download | external_llvm-801e0fd4ead5fe89dc7ced7f7d6c4278a607f580.zip external_llvm-801e0fd4ead5fe89dc7ced7f7d6c4278a607f580.tar.gz external_llvm-801e0fd4ead5fe89dc7ced7f7d6c4278a607f580.tar.bz2 |
Provide direct function to switch to Section
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56571 91177308-0d34-0410-b5e6-96231b3b80d8
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. |