diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetAsmInfo.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index 8305e54..49a99c5 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -113,6 +113,7 @@ namespace llvm { public: bool isNamed() const { return Flags & SectionFlags::Named; } unsigned getEntitySize() const { return (Flags >> 24) & 0xFF; } + const std::string& getName() const { return Name; } unsigned getFlags() const { return Flags; } }; @@ -573,7 +574,7 @@ namespace llvm { /// SectionForGlobal - This hooks returns proper section name for given /// global with all necessary flags and marks. - virtual std::string SectionForGlobal(const GlobalValue *GV) const; + virtual const Section* SectionForGlobal(const GlobalValue *GV) const; // Helper methods for SectionForGlobal virtual std::string UniqueSectionForGlobal(const GlobalValue* GV, |