Fix built for LLVM2.9 and 3.1svn

This commit is contained in:
Matt Pharr
2011-12-06 08:08:41 -08:00
parent b22943b4a4
commit e2b6ed3db8
5 changed files with 46 additions and 17 deletions

View File

@@ -150,8 +150,10 @@ extern void yy_delete_buffer(YY_BUFFER_STATE);
int
Module::CompileFile() {
#ifndef LLVM_3_1svn
if (g->opt.fastMath == true)
llvm::UnsafeFPMath = true;
#endif // !LLVM_3_1svn
// FIXME: it'd be nice to do this in the Module constructor, but this
// function ends up calling into routines that expect the global