mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Call the correct function name. Patch from Stephane Letz.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37614 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e882fca902
commit
8946fe1776
7
test/Other/2007-06-16-Funcname.ll
Normal file
7
test/Other/2007-06-16-Funcname.ll
Normal file
@ -0,0 +1,7 @@
|
||||
; RUN: llvm-as < %s | llvm2cpp -funcname=WAKKA | not grep makeLLVMModule
|
||||
; PR1515
|
||||
|
||||
define void @foo() {
|
||||
ret void
|
||||
}
|
||||
|
@ -1690,7 +1690,7 @@ void CppWriter::printProgram(
|
||||
Out << "using namespace llvm;\n\n";
|
||||
Out << "Module* " << fname << "();\n\n";
|
||||
Out << "int main(int argc, char**argv) {\n";
|
||||
Out << " Module* Mod = makeLLVMModule();\n";
|
||||
Out << " Module* Mod = " << fname << "();\n";
|
||||
Out << " verifyModule(*Mod, PrintMessageAction);\n";
|
||||
Out << " std::cerr.flush();\n";
|
||||
Out << " std::cout.flush();\n";
|
||||
|
Loading…
Reference in New Issue
Block a user