[LLVMbugs] [Bug 2246] llvm2cpp not updated to new API

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Apr 21 23:17:03 PDT 2008


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


Török Edwin <edwintorok at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




--- Comment #3 from Török Edwin <edwintorok at gmail.com>  2008-04-22 01:17:02 ---
(In reply to comment #2)
> fixed by r50062. there was one left-back occurrence of "new PHINode" in
> llvm/tools/llvm2cpp/CppWriter.cpp
> 

It still fails for me, new BasicBlock, new BranchInst...

Here is the full error output, I'll attach the generated .cpp file too:
/usr/local/include/llvm/User.h: In function ‘llvm::Module*
makeLLVMModule()’:
/usr/local/include/llvm/User.h:28: error: ‘static void* llvm::User::operator
new(size_t)’ is private
y.bc.cpp:57: error: within this context
/usr/local/include/llvm/Function.h:113: error:
‘llvm::Function::Function(const llvm::FunctionType*,
llvm::GlobalValue::LinkageTypes, const std::string&, llvm::Module*)’ is
private
y.bc.cpp:57: error: within this context
y.bc.cpp:59: error: conversion from ‘int’ to non-scalar type
‘llvm::PAListPtr’ requested
y.bc.cpp:61: error: ‘SmallVector’ was not declared in this scope
y.bc.cpp:61: error: expected primary-expression before ‘,’ token
y.bc.cpp:61: error: ‘Attrs’ was not declared in this scope
y.bc.cpp:63: error: ‘struct llvm::ParamAttrsWithIndex’ has no member named
‘index’
y.bc.cpp:63: error: ‘struct llvm::ParamAttrsWithIndex’ has no member named
‘attrs’
/usr/local/include/llvm/User.h:28: error: ‘static void* llvm::User::operator
new(size_t)’ is private
y.bc.cpp:90: error: within this context
/usr/local/include/llvm/BasicBlock.h:74: error:
‘llvm::BasicBlock::BasicBlock(const std::string&, llvm::Function*,
llvm::BasicBlock*, llvm::BasicBlock*)’ is private
y.bc.cpp:90: error: within this context
/usr/local/include/llvm/User.h:28: error: ‘static void* llvm::User::operator
new(size_t)’ is private
y.bc.cpp:91: error: within this context
/usr/local/include/llvm/BasicBlock.h:74: error:
‘llvm::BasicBlock::BasicBlock(const std::string&, llvm::Function*,
llvm::BasicBlock*, llvm::BasicBlock*)’ is private
y.bc.cpp:91: error: within this context
/usr/local/include/llvm/User.h:28: error: ‘static void* llvm::User::operator
new(size_t)’ is private
y.bc.cpp:92: error: within this context
/usr/local/include/llvm/BasicBlock.h:74: error:
‘llvm::BasicBlock::BasicBlock(const std::string&, llvm::Function*,
llvm::BasicBlock*, llvm::BasicBlock*)’ is private
y.bc.cpp:92: error: within this context
/usr/local/include/llvm/User.h:28: error: ‘static void* llvm::User::operator
new(size_t)’ is private
y.bc.cpp:93: error: within this context
/usr/local/include/llvm/BasicBlock.h:74: error:
‘llvm::BasicBlock::BasicBlock(const std::string&, llvm::Function*,
llvm::BasicBlock*, llvm::BasicBlock*)’ is private
y.bc.cpp:93: error: within this context
/usr/local/include/llvm/User.h:28: error: ‘static void* llvm::User::operator
new(size_t)’ is private
y.bc.cpp:94: error: within this context
/usr/local/include/llvm/BasicBlock.h:74: error:
‘llvm::BasicBlock::BasicBlock(const std::string&, llvm::Function*,
llvm::BasicBlock*, llvm::BasicBlock*)’ is private
y.bc.cpp:94: error: within this context
/usr/local/include/llvm/User.h:28: error: ‘static void* llvm::User::operator
new(size_t)’ is private
y.bc.cpp:95: error: within this context
/usr/local/include/llvm/BasicBlock.h:74: error:
‘llvm::BasicBlock::BasicBlock(const std::string&, llvm::Function*,
llvm::BasicBlock*, llvm::BasicBlock*)’ is private
y.bc.cpp:95: error: within this context
/usr/local/include/llvm/User.h:28: error: ‘static void* llvm::User::operator
new(size_t)’ is private
y.bc.cpp:96: error: within this context
/usr/local/include/llvm/BasicBlock.h:74: error:
‘llvm::BasicBlock::BasicBlock(const std::string&, llvm::Function*,
llvm::BasicBlock*, llvm::BasicBlock*)’ is private
y.bc.cpp:96: error: within this context
/usr/local/include/llvm/User.h:28: error: ‘static void* llvm::User::operator
new(size_t)’ is private
y.bc.cpp:101: error: within this context
/usr/local/include/llvm/Instructions.h:1601: error:
‘llvm::BranchInst::BranchInst(llvm::BasicBlock*, llvm::BasicBlock*,
llvm::Value*, llvm::BasicBlock*)’ is private
y.bc.cpp:101: error: within this context
/usr/local/include/llvm/User.h:28: error: ‘static void* llvm::User::operator
new(size_t)’ is private
y.bc.cpp:120: error: within this context
/usr/local/include/llvm/Instructions.h:1601: error:
‘llvm::BranchInst::BranchInst(llvm::BasicBlock*, llvm::BasicBlock*,
llvm::Value*, llvm::BasicBlock*)’ is private
y.bc.cpp:120: error: within this context
/usr/local/include/llvm/User.h:28: error: ‘static void* llvm::User::operator
new(size_t)’ is private
y.bc.cpp:128: error: within this context
/usr/local/include/llvm/Instructions.h:1601: error:
‘llvm::BranchInst::BranchInst(llvm::BasicBlock*, llvm::BasicBlock*,
llvm::Value*, llvm::BasicBlock*)’ is private
y.bc.cpp:128: error: within this context
/usr/local/include/llvm/User.h:28: error: ‘static void* llvm::User::operator
new(size_t)’ is private
y.bc.cpp:133: error: within this context
/usr/local/include/llvm/Instructions.h:1599: error:
‘llvm::BranchInst::BranchInst(llvm::BasicBlock*, llvm::BasicBlock*)’ is
private
y.bc.cpp:133: error: within this context
/usr/local/include/llvm/User.h:28: error: ‘static void* llvm::User::operator
new(size_t)’ is private
y.bc.cpp:154: error: within this context
/usr/local/include/llvm/Instructions.h:1599: error:
‘llvm::BranchInst::BranchInst(llvm::BasicBlock*, llvm::BasicBlock*)’ is
private
y.bc.cpp:154: error: within this context
/usr/local/include/llvm/User.h:28: error: ‘static void* llvm::User::operator
new(size_t)’ is private
y.bc.cpp:169: error: within this context
/usr/local/include/llvm/Instructions.h:1601: error:
‘llvm::BranchInst::BranchInst(llvm::BasicBlock*, llvm::BasicBlock*,
llvm::Value*, llvm::BasicBlock*)’ is private
y.bc.cpp:169: error: within this context
/usr/local/include/llvm/User.h:28: error: ‘static void* llvm::User::operator
new(size_t)’ is private
y.bc.cpp:172: error: within this context
/usr/local/include/llvm/Instructions.h:1520: error:
‘llvm::ReturnInst::ReturnInst(llvm::Value*, llvm::BasicBlock*)’ is private
y.bc.cpp:172: error: within this context


-- 
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