diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-05-21 21:10:04 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-05-21 21:10:04 +0000 |
| commit | c839a2574ee6c13223cf3adce282b72dfb5ed335 (patch) | |
| tree | e1ac0b487ece2a1792cf3c1ee5dc442c133c4902 /llvm/lib | |
| parent | 466a049b67021580c2822456002353797db4288d (diff) | |
| download | bcm5719-llvm-c839a2574ee6c13223cf3adce282b72dfb5ed335.tar.gz bcm5719-llvm-c839a2574ee6c13223cf3adce282b72dfb5ed335.zip | |
* Fix typeo
* Provide a #include of <malloc.h> so that the sun C compiler does not
miscompile malloc function calls
llvm-svn: 2702
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CWriter/Writer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CWriter/Writer.cpp b/llvm/lib/CWriter/Writer.cpp index 3003a02064b..bdac6a101e7 100644 --- a/llvm/lib/CWriter/Writer.cpp +++ b/llvm/lib/CWriter/Writer.cpp @@ -356,7 +356,7 @@ void CWriter::writeOperand(const Value *Operand) { void CWriter::printModule(Module *M) { // Calculate which global values have names that will collide when we throw // away type information. - { // Scope to declare the FoundNames set when we are done with it... + { // Scope to delete the FoundNames set when we are done with it... std::set<string> FoundNames; for (Module::iterator I = M->begin(), E = M->end(); I != E; ++I) if ((*I)->hasName()) // If the global has a name... @@ -379,6 +379,7 @@ void CWriter::printModule(Module *M) { // get declaration for alloca Out << "/* Provide Declarations */\n" + << "#include <malloc.h>\n" << "#include <alloca.h>\n\n" // Provide a definition for null if one does not already exist. |

