Add obvious constantness.
authorJakub Staszak <kubastaszak@gmail.com>
Tue, 19 Feb 2013 21:54:59 +0000 (21:54 +0000)
committerJakub Staszak <kubastaszak@gmail.com>
Tue, 19 Feb 2013 21:54:59 +0000 (21:54 +0000)
llvm-svn: 175560

llvm/lib/Target/X86/X86ISelDAGToDAG.cpp

index 6f13186..00fbe69 100644 (file)
@@ -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();
     }
   };