The llvm::ELFWriter::EmitGlobal() method is calling the

llvm::PATypeHolder::get() method when LLVM is self-hosted in Release
mode. Before the parser changed, there was a definition of llvm::PAHolder::get()
in llvmAsmParser.y. This was probably a bug that no-one noticed.

Explicitly #include the Type.h file as a temporary fix for now.

llvm-svn: 61620
This commit is contained in:
Bill Wendling 2009-01-04 01:47:14 +00:00
parent f7044e3010
commit ac79602005
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@
#include "ELFWriter.h"
#include "llvm/Module.h"
#include "llvm/PassManager.h"
#include "llvm/Type.h" // FIXME: For PATypeHolder::get().
#include "llvm/CodeGen/FileWriters.h"
#include "llvm/CodeGen/MachineCodeEmitter.h"
#include "llvm/CodeGen/MachineConstantPool.h"