diff options
author | Jakub Staszak <kubastaszak@gmail.com> | 2013-02-19 21:54:59 +0000 |
---|---|---|
committer | Jakub Staszak <kubastaszak@gmail.com> | 2013-02-19 21:54:59 +0000 |
commit | e167cf5c4de0904519215b10234363cada2253df (patch) | |
tree | 6ec903e7501c943bb970441a6752524e04bf7e15 | |
parent | 5f2fb6d9d15ff08c0da8ad81ca4ee59308e90d6c (diff) | |
download | bcm5719-llvm-e167cf5c4de0904519215b10234363cada2253df.tar.gz bcm5719-llvm-e167cf5c4de0904519215b10234363cada2253df.zip |
Add obvious constantness.
llvm-svn: 175560
-rw-r--r-- | llvm/lib/Target/X86/X86ISelDAGToDAG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp index 6f13186dfb4..00fbe6924cc 100644 --- a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp +++ b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp @@ -280,13 +280,13 @@ namespace { /// getTargetMachine - Return a reference to the TargetMachine, casted /// to the target-specific type. - const X86TargetMachine &getTargetMachine() { + const X86TargetMachine &getTargetMachine() const { return static_cast<const X86TargetMachine &>(TM); } /// getInstrInfo - Return a reference to the TargetInstrInfo, casted /// to the target-specific type. - const X86InstrInfo *getInstrInfo() { + const X86InstrInfo *getInstrInfo() const { return getTargetMachine().getInstrInfo(); } }; |