summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-01-02 21:03:28 +0000
committerEric Christopher <echristo@gmail.com>2014-01-02 21:03:28 +0000
commitd4368fde45a8faef3253c66236c00c2e9169ff69 (patch)
tree6fed6c062236ae325a4eae7869b6ac303c1ffc80 /llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
parent8bdb6e1d49229b0fd5476b97636c68087c3b865e (diff)
downloadbcm5719-llvm-d4368fde45a8faef3253c66236c00c2e9169ff69.tar.gz
bcm5719-llvm-d4368fde45a8faef3253c66236c00c2e9169ff69.zip
Fix up a couple of review comments:
Use an if statement instead of a pair of ternary operators checking the same condition. Use a cheap method call rather than returning the local symbol. llvm-svn: 198351
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
index 808c9c25ed3..524cdc1b59f 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
@@ -185,7 +185,7 @@ public:
MCSymbol *getLocalSectionSym() const {
if (Skeleton)
return Skeleton->getSectionSym();
- return SectionSym;
+ return getSectionSym();
}
MCSymbol *getSectionSym() const {
@@ -198,7 +198,7 @@ public:
MCSymbol *getLocalLabelBegin() const {
if (Skeleton)
return Skeleton->getLabelBegin();
- return LabelBegin;
+ return getLabelBegin();
}
MCSymbol *getLabelBegin() const {
OpenPOWER on IntegriCloud