[LLVMbugs] [Bug 2246] New: llvm2cpp not updated to new API
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon Apr 21 13:22:53 PDT 2008
http://llvm.org/bugs/show_bug.cgi?id=2246
Summary: llvm2cpp not updated to new API
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu
llvm2cpp still generates code with new PHINode(...), instead of using the new
API ::Create.
Thus llvm2cpp generated sources fail to compile:
$ llvm2cpp y.bc -f
$ g++ y.bc.cpp -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -O2
/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
......
--
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