Added RegisterCoalescer to required passes for PBQP.
[oota-llvm.git] / lib / CodeGen / ELF.h
index 499af10c79e51e590debc3dfe83c47457c4816e5..c9ec9b1912bf7db9803c12fd80059202d2a52d19 100644 (file)
@@ -136,11 +136,11 @@ namespace llvm {
       return Sym;
     }
 
-    // getFileSym - Returns a elf symbol to represent the module identifier
-    static ELFSym *getUndefGV(const GlobalValue *GV) {
+    // getUndefGV - Returns a STT_NOTYPE symbol
+    static ELFSym *getUndefGV(const GlobalValue *GV, unsigned Bind) {
       ELFSym *Sym = new ELFSym();
       Sym->Source.GV = GV;
-      Sym->setBind(STB_GLOBAL);
+      Sym->setBind(Bind);
       Sym->setType(STT_NOTYPE);
       Sym->setVisibility(STV_DEFAULT);
       Sym->SectionIdx = 0;  //ELFSection::SHN_UNDEF;