aboutsummaryrefslogtreecommitdiffstats
path: root/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
commitd9eb68dd68d1462dd76c86973161e72787a53c3c (patch)
tree3229e29856c241c807a86e6d0c9a1243463edae1 /lib/CodeGen/ELFWriter.cpp
parent704cb8b1f8ad502730ce1d6d9e37f3287ca28676 (diff)
downloadexternal_llvm-d9eb68dd68d1462dd76c86973161e72787a53c3c.tar.gz
external_llvm-d9eb68dd68d1462dd76c86973161e72787a53c3c.tar.bz2
external_llvm-d9eb68dd68d1462dd76c86973161e72787a53c3c.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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61620 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ELFWriter.cpp')
-rw-r--r--lib/CodeGen/ELFWriter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/ELFWriter.cpp b/lib/CodeGen/ELFWriter.cpp
index 001bad9832..683a21e5e4 100644
--- a/lib/CodeGen/ELFWriter.cpp
+++ b/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"