[llvm] r231529 - Add DIEInteger::setValue() method.

Frederic Riss friss at apple.com
Fri Mar 6 15:22:46 PST 2015


Author: friss
Date: Fri Mar  6 17:22:46 2015
New Revision: 231529

URL: http://llvm.org/viewvc/llvm-project?rev=231529&view=rev
Log:
Add DIEInteger::setValue() method.

dsymutil needs to 'patch' attribute values after creating them. Just
add this trivial capability.

Modified:
    llvm/trunk/include/llvm/CodeGen/DIE.h

Modified: llvm/trunk/include/llvm/CodeGen/DIE.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/DIE.h?rev=231529&r1=231528&r2=231529&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/DIE.h (original)
+++ llvm/trunk/include/llvm/CodeGen/DIE.h Fri Mar  6 17:22:46 2015
@@ -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.
   ///





More information about the llvm-commits mailing list