projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7abf924
)
Remove dead test: this was already checked and handled a few lines
author
Duncan Sands
<baldrick@free.fr>
Sun, 5 Feb 2012 19:30:06 +0000
(19:30 +0000)
committer
Duncan Sands
<baldrick@free.fr>
Sun, 5 Feb 2012 19:30:06 +0000
(19:30 +0000)
above.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149841
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/CppBackend/CPPBackend.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/CppBackend/CPPBackend.cpp
b/lib/Target/CppBackend/CPPBackend.cpp
index 2cfae0789f1479e2ff8be397e1b058027c2d56c8..7c9caf6f03e9063e808cdec9eb2db1ea2e58d44f 100644
(file)
--- 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