diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-17 16:44:48 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-17 16:44:48 +0000 |
commit | 53d4a08d2b13c608cd9a04b4b3ff3d105364f329 (patch) | |
tree | 6fd06c709ee3cb4b1d7cc8b18c66c71d291b9419 /llvm/lib/Target/PIC16 | |
parent | 88f7f6aeda7df297721b1f1837a76d31caac00bc (diff) | |
download | bcm5719-llvm-53d4a08d2b13c608cd9a04b4b3ff3d105364f329.tar.gz bcm5719-llvm-53d4a08d2b13c608cd9a04b4b3ff3d105364f329.zip |
Add const qualifiers to TargetLoweringObjectFile usage.
llvm-svn: 101640
Diffstat (limited to 'llvm/lib/Target/PIC16')
-rw-r--r-- | llvm/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.h | 6 | ||||
-rw-r--r-- | llvm/lib/Target/PIC16/PIC16TargetObjectFile.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Target/PIC16/PIC16TargetObjectFile.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.h b/llvm/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.h index 0115478358a..a424c270aaa 100644 --- a/llvm/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.h +++ b/llvm/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.h @@ -37,8 +37,8 @@ namespace llvm { return "PIC16 Assembly Printer"; } - PIC16TargetObjectFile &getObjFileLowering() const { - return (PIC16TargetObjectFile &)AsmPrinter::getObjFileLowering(); + const PIC16TargetObjectFile &getObjFileLowering() const { + return (const PIC16TargetObjectFile &)AsmPrinter::getObjFileLowering(); } bool runOnMachineFunction(MachineFunction &F); @@ -76,7 +76,7 @@ namespace llvm { } private: - PIC16TargetObjectFile *PTOF; + const PIC16TargetObjectFile *PTOF; PIC16DbgInfo DbgInfo; const PIC16MCAsmInfo *PMAI; std::set<std::string> LibcallDecls; // Sorted & uniqued set of extern decls. diff --git a/llvm/lib/Target/PIC16/PIC16TargetObjectFile.cpp b/llvm/lib/Target/PIC16/PIC16TargetObjectFile.cpp index 570dcf8d386..ff0f971cc38 100644 --- a/llvm/lib/Target/PIC16/PIC16TargetObjectFile.cpp +++ b/llvm/lib/Target/PIC16/PIC16TargetObjectFile.cpp @@ -26,7 +26,7 @@ PIC16TargetObjectFile::~PIC16TargetObjectFile() { /// Find a pic16 section. Return null if not found. Do not create one. PIC16Section *PIC16TargetObjectFile:: -findPIC16Section(const std::string &Name) { +findPIC16Section(const std::string &Name) const { /// Return if we have an already existing one. PIC16Section *Entry = SectionsByName[Name]; if (Entry) diff --git a/llvm/lib/Target/PIC16/PIC16TargetObjectFile.h b/llvm/lib/Target/PIC16/PIC16TargetObjectFile.h index cf8bf848e45..b1eb9f9d854 100644 --- a/llvm/lib/Target/PIC16/PIC16TargetObjectFile.h +++ b/llvm/lib/Target/PIC16/PIC16TargetObjectFile.h @@ -122,7 +122,7 @@ namespace llvm { void Initialize(MCContext &Ctx, const TargetMachine &TM); /// Return the section with the given Name. Null if not found. - PIC16Section *findPIC16Section(const std::string &Name); + PIC16Section *findPIC16Section(const std::string &Name) const; /// Override section allocations for user specified sections. virtual const MCSection * |