mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-20 10:24:12 +00:00
Hold the LLVMContext by reference rather than by pointer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74640 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -27,7 +27,7 @@ int main() {
|
||||
|
||||
// Create the "module" or "program" or "translation unit" to hold the
|
||||
// function
|
||||
Module *M = new Module("test", &Context);
|
||||
Module *M = new Module("test", Context);
|
||||
|
||||
// Create the main function: first create the type 'int ()'
|
||||
FunctionType *FT = FunctionType::get(Type::Int32Ty, /*not vararg*/false);
|
||||
|
Reference in New Issue
Block a user