forked from OSchip/llvm-project
Revert r137134. It breaks some code as Eli pointed out.
llvm-svn: 137135
This commit is contained in:
parent
84ec8f65d1
commit
d7f41b7f66
|
@ -1817,7 +1817,7 @@ bool CWriter::doInitialization(Module &M) {
|
||||||
Out << "\n\n/* Global Variable Declarations */\n";
|
Out << "\n\n/* Global Variable Declarations */\n";
|
||||||
for (Module::global_iterator I = M.global_begin(), E = M.global_end();
|
for (Module::global_iterator I = M.global_begin(), E = M.global_end();
|
||||||
I != E; ++I)
|
I != E; ++I)
|
||||||
if (I->isDeclaration()) {
|
if (!I->isDeclaration()) {
|
||||||
// Ignore special globals, such as debug info.
|
// Ignore special globals, such as debug info.
|
||||||
if (getGlobalVariableClass(I))
|
if (getGlobalVariableClass(I))
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
; RUN: llc < %s -march=c | grep {static float _ZL3foo} | count 1
|
|
||||||
; PR10081
|
|
||||||
|
|
||||||
@_ZL3foo = internal global float 0.000000e+00, align 4
|
|
||||||
|
|
||||||
define float @_Z3barv() nounwind ssp {
|
|
||||||
%1 = load float* @_ZL3foo, align 4
|
|
||||||
%2 = fadd float %1, 1.000000e+00
|
|
||||||
store float %2, float* @_ZL3foo, align 4
|
|
||||||
ret float %1
|
|
||||||
}
|
|
Loading…
Reference in New Issue