[llvm-commits] CVS: llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp
Reid Spencer
reid at x10sys.com
Tue Aug 24 15:52:12 PDT 2004
Changes in directory llvm/projects/Stacker/lib/compiler:
StackerCompiler.cpp updated: 1.7 -> 1.8
---
Log message:
Add dependent library support for Stacker. It now inserts "stkr_runtime" as
a dependent library.
---
Diffs of the changes: (+5 -1)
Index: llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp
diff -u llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp:1.7 llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp:1.8
--- llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp:1.7 Thu Jul 29 12:17:46 2004
+++ llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp Tue Aug 24 17:52:01 2004
@@ -114,6 +114,9 @@
// Create the module we'll return
TheModule = new Module( CurFilename );
+ // Tell the module about our runtime library
+ TheModule->addLibrary("stkr_runtime");
+
// Create a type to represent the stack. This is the same as the LLVM
// Assembly type [ 256 x long ]
stack_type = ArrayType::get( Type::LongTy, stack_size );
@@ -245,12 +248,13 @@
TheInstance = this;
// Parse the file. The parser (see StackParser.y) will call back to
- // the StackCompiler via the "handle*" methods
+ // the StackerCompiler via the "handle*" methods
Stackerparse();
// Avoid potential illegal use (TheInstance might be on the stack)
TheInstance = 0;
+
} catch (...) {
if (F != stdin) fclose(F); // Make sure to close file descriptor
throw; // if an exception is thrown
More information about the llvm-commits
mailing list