[llvm-commits] [llvm] r61620 - /llvm/trunk/lib/CodeGen/ELFWriter.cpp
Bill Wendling
isanbard at gmail.com
Sat Jan 3 17:47:15 PST 2009
Author: void
Date: Sat Jan 3 19:47:14 2009
New Revision: 61620
URL: http://llvm.org/viewvc/llvm-project?rev=61620&view=rev
Log:
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.
Modified:
llvm/trunk/lib/CodeGen/ELFWriter.cpp
Modified: llvm/trunk/lib/CodeGen/ELFWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ELFWriter.cpp?rev=61620&r1=61619&r2=61620&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/ELFWriter.cpp (original)
+++ llvm/trunk/lib/CodeGen/ELFWriter.cpp Sat Jan 3 19:47:14 2009
@@ -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"
More information about the llvm-commits
mailing list