[LLVMbugs] [Bug 12606] New: unused linkonce_odr global in clang output

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Apr 20 17:41:17 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=12606

             Bug #: 12606
           Summary: unused linkonce_odr global in clang output
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Compiling

struct a {
  virtual void WrapObject()   {
  }
};
struct b : public a {
};
b x;

with

clang -o clang.ll -S test.ii -O2 -fno-exceptions -fno-rtti -emit-llvm

produces a .ll with an unused

@_ZTV1a = linkonce_odr unnamed_addr constant [3 x i8*] [i8* null, i8* null, i8*
bitcast (void (%struct.a*)* @_ZN1a10WrapObjectEv to i8*)]

Running "opt -std-compile-opts", removes it.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list