summaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/DIE.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-02-27 18:36:10 +0000
committerEric Christopher <echristo@gmail.com>2014-02-27 18:36:10 +0000
commite6a9693ab1710187eeb554ba7f4a2c3dd5557caa (patch)
tree04c58cf1e41d888865762134f043fe25b056c9d3 /lib/CodeGen/AsmPrinter/DIE.h
parent4bd26ae070d3ee565c5b0297657003ee4767a5ab (diff)
downloadllvm-e6a9693ab1710187eeb554ba7f4a2c3dd5557caa.tar.gz
llvm-e6a9693ab1710187eeb554ba7f4a2c3dd5557caa.tar.bz2
llvm-e6a9693ab1710187eeb554ba7f4a2c3dd5557caa.tar.xz
Revert r201751 and solve the const problem a different way - by
making the cache mutable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202417 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DIE.h')
-rw-r--r--lib/CodeGen/AsmPrinter/DIE.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/CodeGen/AsmPrinter/DIE.h b/lib/CodeGen/AsmPrinter/DIE.h
index d4f3154d15..0a60859b7e 100644
--- a/lib/CodeGen/AsmPrinter/DIE.h
+++ b/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 {