Skip to content

llvm2cpp not updated to new API #2618

@edwintorok

Description

@edwintorok
Bugzilla Link 2246
Resolution FIXED
Resolved on Apr 23, 2008 02:13
Version unspecified
OS Linux
Attachments testcase
CC @ggreif,@isanbard

Extended Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzilla

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions