Add DIEInteger::setValue() method.
authorFrederic Riss <friss@apple.com>
Fri, 6 Mar 2015 23:22:46 +0000 (23:22 +0000)
committerFrederic Riss <friss@apple.com>
Fri, 6 Mar 2015 23:22:46 +0000 (23:22 +0000)
dsymutil needs to 'patch' attribute values after creating them. Just
add this trivial capability.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231529 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/DIE.h

index 88b26d7285475d3bbd83cdec9f9fff1944525aaa..7803898a8d449824a510067884f85d91d4e87729 100644 (file)
@@ -278,6 +278,7 @@ public:
   void EmitValue(const AsmPrinter *AP, dwarf::Form Form) const override;
 
   uint64_t getValue() const { return Integer; }
+  void setValue(uint64_t Val) { Integer = Val; }
 
   /// SizeOf - Determine size of integer value in bytes.
   ///