diff options
author | Christopher Lamb <christopher.lamb@gmail.com> | 2007-12-17 01:12:55 +0000 |
---|---|---|
committer | Christopher Lamb <christopher.lamb@gmail.com> | 2007-12-17 01:12:55 +0000 |
commit | edf0788758c1245d40c3355914ddb310117f457b (patch) | |
tree | d9a6df96cce2d9fed1ee681eb546e5a02126bbe2 /llvm/examples/BrainF/BrainFDriver.cpp | |
parent | 77560fbde7cbb2d2d6cdf39c9f3ad4feb725daaf (diff) | |
download | llvm-edf0788758c1245d40c3355914ddb310117f457b.zip llvm-edf0788758c1245d40c3355914ddb310117f457b.tar.gz llvm-edf0788758c1245d40c3355914ddb310117f457b.tar.bz2 |
Change the PointerType api for creating pointer types. The old functionality of PointerType::get() has become PointerType::getUnqual(), which returns a pointer in the generic address space. The new prototype of PointerType::get() requires both a type and an address space.
llvm-svn: 45082
Diffstat (limited to 'llvm/examples/BrainF/BrainFDriver.cpp')
-rw-r--r-- | llvm/examples/BrainF/BrainFDriver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/examples/BrainF/BrainFDriver.cpp b/llvm/examples/BrainF/BrainFDriver.cpp index 7d29fe6..3f3b6c3 100644 --- a/llvm/examples/BrainF/BrainFDriver.cpp +++ b/llvm/examples/BrainF/BrainFDriver.cpp @@ -59,7 +59,7 @@ void addMainFunction(Module *mod) { //define i32 @main(i32 %argc, i8 **%argv) Function *main_func = cast<Function>(mod-> getOrInsertFunction("main", IntegerType::Int32Ty, IntegerType::Int32Ty, - PointerType::get(PointerType::get( + PointerType::getUnqual(PointerType::getUnqual( IntegerType::Int8Ty)), NULL)); { Function::arg_iterator args = main_func->arg_begin(); |