Constify a few functions.
authorEric Christopher <echristo@gmail.com>
Wed, 3 Jul 2013 08:13:55 +0000 (08:13 +0000)
committerEric Christopher <echristo@gmail.com>
Wed, 3 Jul 2013 08:13:55 +0000 (08:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185520 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.h

index b5f66868b4a1d3b6e90a0723d6cb3b075575fc68..de51a43f65e4d209ac3e027b2b579a9ec41b5537 100644 (file)
@@ -114,9 +114,9 @@ typedef struct DotDebugLocEntry {
   bool isInt() const         { return EntryKind == E_Integer; }
   bool isConstantFP() const  { return EntryKind == E_ConstantFP; }
   bool isConstantInt() const { return EntryKind == E_ConstantInt; }
-  int64_t getInt()                    { return Constants.Int; }
-  const ConstantFP *getConstantFP()   { return Constants.CFP; }
-  const ConstantInt *getConstantInt() { return Constants.CIP; }
+  int64_t getInt() const                    { return Constants.Int; }
+  const ConstantFP *getConstantFP() const   { return Constants.CFP; }
+  const ConstantInt *getConstantInt() const { return Constants.CIP; }
 } DotDebugLocEntry;
 
 //===----------------------------------------------------------------------===//