summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DIE.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-02-20 02:40:45 +0000
committerEric Christopher <echristo@gmail.com>2014-02-20 02:40:45 +0000
commit5d503b5deb29780e5bc4ac6e5f185ec708c3ad07 (patch)
treefd3fb895cdc92ae18fe504604cf9fca700bf5306 /llvm/lib/CodeGen/AsmPrinter/DIE.h
parenta1b87fdfbf19e0f55da282b424e2b5918aa3cf20 (diff)
downloadbcm5719-llvm-5d503b5deb29780e5bc4ac6e5f185ec708c3ad07.tar.gz
bcm5719-llvm-5d503b5deb29780e5bc4ac6e5f185ec708c3ad07.zip
Make DIELoc/DIEBlock's ComputeSize method const. Add a setSize
method to actually set it in the class to avoid computing it multiple times. llvm-svn: 201751
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DIE.h')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DIE.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DIE.h b/llvm/lib/CodeGen/AsmPrinter/DIE.h
index a35229da910..d4f3154d15c 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DIE.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DIE.h
@@ -451,7 +451,11 @@ namespace llvm {
/// ComputeSize - Calculate the size of the location expression.
///
- unsigned ComputeSize(AsmPrinter *AP);
+ 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.
///
@@ -490,7 +494,11 @@ namespace llvm {
/// ComputeSize - Calculate the size of the location expression.
///
- unsigned ComputeSize(AsmPrinter *AP);
+ 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.
///
OpenPOWER on IntegriCloud