Make getCompileUnit non-const and return the current DIE if it
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DIE.h
index d8fa1f5a0e71426ba6d84dc70180d9806cc7a296..550d87312833b9c19188b8f6ee16bfcb1c0e7e84 100644 (file)
@@ -153,7 +153,7 @@ namespace llvm {
     DIE *getParent() const { return Parent; }
     /// Climb up the parent chain to get the compile unit DIE this DIE belongs
     /// to.
-    DIE *getCompileUnit() const;
+    DIE *getCompileUnit();
     void setTag(unsigned Tag) { Abbrev.setTag(Tag); }
     void setOffset(unsigned O) { Offset = O; }
     void setSize(unsigned S) { Size = S; }