diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-16 18:04:31 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-16 18:04:31 +0000 |
commit | 20b34ac794d15256953f5807c4cbe2cbe16ae5e6 (patch) | |
tree | 38ac5c7c3e222e1ccb694083c6ddec81ca81b231 /llvm/examples/BrainF/BrainFDriver.cpp | |
parent | ca75db7c02c7c452cde8c8f56c898dff1c1b3e95 (diff) | |
download | llvm-20b34ac794d15256953f5807c4cbe2cbe16ae5e6.zip llvm-20b34ac794d15256953f5807c4cbe2cbe16ae5e6.tar.gz llvm-20b34ac794d15256953f5807c4cbe2cbe16ae5e6.tar.bz2 |
Move the ConstantInt uniquing table into LLVMContextImpl. This exposed a number of issues in
our current context-passing stuff, which is also fixed here
llvm-svn: 76089
Diffstat (limited to 'llvm/examples/BrainF/BrainFDriver.cpp')
-rw-r--r-- | llvm/examples/BrainF/BrainFDriver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/examples/BrainF/BrainFDriver.cpp b/llvm/examples/BrainF/BrainFDriver.cpp index 4eaa494..021b951 100644 --- a/llvm/examples/BrainF/BrainFDriver.cpp +++ b/llvm/examples/BrainF/BrainFDriver.cpp @@ -80,13 +80,13 @@ void addMainFunction(Module *mod) { } //ret i32 0 - ReturnInst::Create(ConstantInt::get(APInt(32, 0)), bb); + ReturnInst::Create(getGlobalContext().getConstantInt(APInt(32, 0)), bb); } int main(int argc, char **argv) { cl::ParseCommandLineOptions(argc, argv, " BrainF compiler\n"); - LLVMContext Context; + LLVMContext &Context = getGlobalContext(); if (InputFilename == "") { std::cerr<<"Error: You must specify the filename of the program to " |