diff options
author | Eric Christopher <echristo@gmail.com> | 2014-02-27 18:36:10 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-02-27 18:36:10 +0000 |
commit | 8bdab4396457091c232a7e193cd83cb0dedb8ed1 (patch) | |
tree | ed8a630f4536d2d907b3f58b754094506274ad67 /llvm/lib/CodeGen/AsmPrinter/DIE.h | |
parent | 7072073cc99b63a39cefaea71ae331642d95d96e (diff) | |
download | bcm5719-llvm-8bdab4396457091c232a7e193cd83cb0dedb8ed1.tar.gz bcm5719-llvm-8bdab4396457091c232a7e193cd83cb0dedb8ed1.zip |
Revert r201751 and solve the const problem a different way - by
making the cache mutable.
llvm-svn: 202417
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DIE.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DIE.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DIE.h b/llvm/lib/CodeGen/AsmPrinter/DIE.h index d4f3154d15c..0a60859b7e5 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DIE.h +++ b/llvm/lib/CodeGen/AsmPrinter/DIE.h @@ -445,7 +445,7 @@ namespace llvm { /// DIELoc - Represents an expression location. // class DIELoc : public DIEValue, public DIE { - unsigned Size; // Size in bytes excluding size header. + mutable unsigned Size; // Size in bytes excluding size header. public: DIELoc() : DIEValue(isLoc), DIE(0), Size(0) {} @@ -453,10 +453,6 @@ namespace llvm { /// unsigned ComputeSize(AsmPrinter *AP) const; - /// setSize - Set the size of the location entry. - /// - void setSize(unsigned Sz) { Size = Sz; } - /// BestForm - Choose the best form for data. /// dwarf::Form BestForm(unsigned DwarfVersion) const { @@ -488,7 +484,7 @@ namespace llvm { /// DIEBlock - Represents a block of values. // class DIEBlock : public DIEValue, public DIE { - unsigned Size; // Size in bytes excluding size header. + mutable unsigned Size; // Size in bytes excluding size header. public: DIEBlock() : DIEValue(isBlock), DIE(0), Size(0) {} @@ -496,10 +492,6 @@ namespace llvm { /// unsigned ComputeSize(AsmPrinter *AP) const; - /// setSize - Set the size of the block. - /// - void setSize(unsigned Sz) { Size = Sz; } - /// BestForm - Choose the best form for data. /// dwarf::Form BestForm() const { |