OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ae5b32
)
Add support for BlockAddress static initializers.
author
Dan Gohman
<gohman@apple.com>
Fri, 30 Oct 2009 01:45:18 +0000
(
01:45
+0000)
committer
Dan Gohman
<gohman@apple.com>
Fri, 30 Oct 2009 01:45:18 +0000
(
01:45
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85562
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index
5767682
..
989f19c
100644
(file)
--- a/
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@
-919,6
+919,8
@@
void AsmPrinter::EmitConstantValueOnly(const Constant *CV) {
default:
llvm_unreachable("Unsupported operator!");
}
+ } else if (const BlockAddress *BA = dyn_cast<BlockAddress>(CV)) {
+ GetBlockAddressSymbol(BA)->print(O, MAI);
} else {
llvm_unreachable("Unknown constant value!");
}