aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/CppBackend/CPPBackend.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2012-02-05 19:30:06 +0000
committerDuncan Sands <baldrick@free.fr>2012-02-05 19:30:06 +0000
commit23f612113a0532dda1ebf7156283b8cf9a4c0ed5 (patch)
treecfdd7d6d7d98c3769f93a96d9841ac42130c2d05 /lib/Target/CppBackend/CPPBackend.cpp
parent7abf924d31287b688558718d1f70cb4c56caaddb (diff)
Remove dead test: this was already checked and handled a few lines
above. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149841 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CppBackend/CPPBackend.cpp')
-rw-r--r--lib/Target/CppBackend/CPPBackend.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp
index 2cfae0789f..7c9caf6f03 100644
--- a/lib/Target/CppBackend/CPPBackend.cpp
+++ b/lib/Target/CppBackend/CPPBackend.cpp
@@ -676,11 +676,6 @@ void CppWriter::printConstant(const Constant *CV) {
std::string constName(getCppName(CV));
std::string typeName(getCppName(CV->getType()));
- if (isa<GlobalValue>(CV)) {
- // Skip variables and functions, we emit them elsewhere
- return;
- }
-
if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) {
std::string constValue = CI->getValue().toString(10, true);
Out << "ConstantInt* " << constName