summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/ELFWriter.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-01-04 01:47:14 +0000
committerBill Wendling <isanbard@gmail.com>2009-01-04 01:47:14 +0000
commitac79602005adcadfa2ff2de86320b26058f53f37 (patch)
treec50ff532f541cbb78eb2e173a8ae35fff6a268ef /llvm/lib/CodeGen/ELFWriter.cpp
parentf7044e3010d3c40e6b487e9e440d931de659ea9a (diff)
downloadbcm5719-llvm-ac79602005adcadfa2ff2de86320b26058f53f37.tar.gz
bcm5719-llvm-ac79602005adcadfa2ff2de86320b26058f53f37.zip
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
Diffstat (limited to 'llvm/lib/CodeGen/ELFWriter.cpp')
-rw-r--r--llvm/lib/CodeGen/ELFWriter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/ELFWriter.cpp b/llvm/lib/CodeGen/ELFWriter.cpp
index 001bad98324..683a21e5e49 100644
--- a/llvm/lib/CodeGen/ELFWriter.cpp
+++ b/llvm/lib/CodeGen/ELFWriter.cpp
@@ -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"
OpenPOWER on IntegriCloud