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)
llvm-svn: 185520

llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h

index b5f6686..de51a43 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;
 
 //===----------------------------------------------------------------------===//