summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-03-11 17:15:44 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-03-11 17:15:44 +0000
commite803fc3276c24d7abe35204ec8e9b252872684e3 (patch)
tree6199aa5777bc657e52b3b23bc36ddd1b5c610662 /clang/lib/CodeGen/CGExpr.cpp
parent1e9c9251824e9fee549d49bf10388fa996fab10c (diff)
downloadbcm5719-llvm-e803fc3276c24d7abe35204ec8e9b252872684e3.tar.gz
bcm5719-llvm-e803fc3276c24d7abe35204ec8e9b252872684e3.zip
Remove compile time PreserveName switch based on NDEBUG
Summary: Following r263086, we are now relying on a flag on the Context to discard Value names in release builds. Reviewers: chandlerc Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D18024 From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 263257
Diffstat (limited to 'clang/lib/CodeGen/CGExpr.cpp')
-rw-r--r--clang/lib/CodeGen/CGExpr.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index 4a0f149b969..ccda7f4d1aa 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/lib/CodeGen/CGExpr.cpp
@@ -66,8 +66,6 @@ Address CodeGenFunction::CreateTempAlloca(llvm::Type *Ty, CharUnits Align,
/// block.
llvm::AllocaInst *CodeGenFunction::CreateTempAlloca(llvm::Type *Ty,
const Twine &Name) {
- if (!Builder.isNamePreserving())
- return new llvm::AllocaInst(Ty, nullptr, "", AllocaInsertPt);
return new llvm::AllocaInst(Ty, nullptr, Name, AllocaInsertPt);
}
OpenPOWER on IntegriCloud