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 | 608e3554847ef35995b7310ba8acd43ab861e3f0 (patch) | |
tree | 5b882359fbad8211549baed6bd455f282075baac | |
parent | fef8b70f9d40e57fdd2e0c2bdf013cb7d0ea6df2 (diff) | |
download | external_llvm-608e3554847ef35995b7310ba8acd43ab861e3f0.zip external_llvm-608e3554847ef35995b7310ba8acd43ab861e3f0.tar.gz external_llvm-608e3554847ef35995b7310ba8acd43ab861e3f0.tar.bz2 |
Add obvious constantness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175560 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/X86ISelDAGToDAG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/X86ISelDAGToDAG.cpp b/lib/Target/X86/X86ISelDAGToDAG.cpp index 6f13186..00fbe69 100644 --- a/lib/Target/X86/X86ISelDAGToDAG.cpp +++ b/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(); } }; |