[LLVMbugs] [Bug 22581] New: r229094 breaks gold-plugin

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Feb 13 12:25:30 PST 2015


            Bug ID: 22581
           Summary: r229094 breaks gold-plugin
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: hjl.tools at gmail.com
                CC: chandlerc at gmail.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

On Fedora 20/x86-64, with

commit 417c5c172ce0d56105112481b1bcf0bc2fc011c2
Author: Chandler Carruth <chandlerc at gmail.com>
Date:   Fri Feb 13 10:01:29 2015 +0000

    [PM] Remove the old 'PassManager.h' header file at the top level of
    LLVM's include tree and the use of using declarations to hide the
    'legacy' namespace for the old pass manager.

    This undoes the primary modules-hostile change I made to keep
    out-of-tree targets building. I sent an email inquiring about whether
    this would be reasonable to do at this phase and people seemed fine with
    it, so making it a reality. This should allow us to start bootstrapping
    with modules to a certain extent along with making it easier to mix and
    match headers in general.

    The updates to any code for users of LLVM are very mechanical. Switch
    from including "llvm/PassManager.h" to "llvm/IR/LegacyPassManager.h".
    Qualify the types which now produce compile errors with "legacy::". The
    most common ones are "PassManager", "PassManagerBase", and

I got

In file included from /export/ssd/git/llvm/tools/gold/gold-plugin.cpp:40:0:
note:   ‘llvm::PassManagerBuilder’
 class PassManagerBuilder {
note:   ‘llvm::PassManagerBuilder’
/export/ssd/git/llvm/tools/gold/gold-plugin.cpp:700:30: error: expected ‘;’
before ‘PMB’
   legacy::PassManagerBuilder PMB; 
/export/ssd/git/llvm/tools/gold/gold-plugin.cpp:701:3: error: ‘PMB’ was not
declared in this scope
   PMB.LibraryInfo = new TargetLibraryInfoImpl(Triple(TM.getTargetTriple()));
/usr/bin/rm: cannot remove
No such file or directory
make[3]: ***
Error 1

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150213/3812d21a/attachment.html>

More information about the llvm-bugs mailing list