make getObjFileLowering() return a non-const reference.

llvm-svn: 77984
This commit is contained in:
Chris Lattner 2009-08-03 19:12:26 +00:00
parent e6cb9d1888
commit a5a1e7b4ed
3 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ namespace llvm {
TargetMachine &TM;
/// getObjFileLowering - Return information about object file lowering.
const TargetLoweringObjectFile &getObjFileLowering() const;
TargetLoweringObjectFile &getObjFileLowering() const;
/// Target Asm Printer information.
///

View File

@ -107,7 +107,7 @@ public:
TargetMachine &getTargetMachine() const { return TM; }
const TargetData *getTargetData() const { return TD; }
const TargetLoweringObjectFile &getObjFileLowering() const { return TLOF; }
TargetLoweringObjectFile &getObjFileLowering() const { return TLOF; }
bool isBigEndian() const { return !IsLittleEndian; }
bool isLittleEndian() const { return IsLittleEndian; }

View File

@ -74,7 +74,7 @@ AsmPrinter::~AsmPrinter() {
delete &OutContext;
}
const TargetLoweringObjectFile &AsmPrinter::getObjFileLowering() const {
TargetLoweringObjectFile &AsmPrinter::getObjFileLowering() const {
return TM.getTargetLowering()->getObjFileLowering();
}