[llvm-commits] [llvm-gcc-4.0] r42288 - /llvm-gcc-4.0/trunk/gcc/llvm-backend.cpp
Bill Wendling
isanbard at gmail.com
Mon Sep 24 20:18:24 PDT 2007
Author: void
Date: Mon Sep 24 22:18:23 2007
New Revision: 42288
URL: http://llvm.org/viewvc/llvm-project?rev=42288&view=rev
Log:
Tabs are the devil's work!
Modified:
llvm-gcc-4.0/trunk/gcc/llvm-backend.cpp
Modified: llvm-gcc-4.0/trunk/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.0/trunk/gcc/llvm-backend.cpp?rev=42288&r1=42287&r2=42288&view=diff
==============================================================================
--- llvm-gcc-4.0/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.0/trunk/gcc/llvm-backend.cpp Mon Sep 24 22:18:23 2007
@@ -1060,7 +1060,7 @@
} else {
// If the global has a name, prevent multiple vars with the same name from
// being created.
- GlobalVariable *GVE = TheModule->getGlobalVariable(Name);
+ GlobalVariable *GVE = TheModule->getGlobalVariable(Name, true);
// And Objective-C "@protocol" will create a decl for the
// protocol metadata and then when the protocol is
@@ -1068,7 +1068,7 @@
// aren't found in the GlobalVariable list unless we look at
// non-extern globals as well.
if (!GVE && c_dialect_objc() && objc_is_protocol_reference(Name))
- GVE = TheModule->getGlobalVariable(Name, true);
+ GVE = TheModule->getGlobalVariable(Name, true);
if (GVE == 0) {
GV = new GlobalVariable(Ty, false, GlobalValue::ExternalLinkage,0,
More information about the llvm-commits
mailing list