It turns out that this #include is needed because otherwise
authorChris Lattner <sabre@nondot.org>
Thu, 21 Jan 2010 21:29:25 +0000 (21:29 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 21 Jan 2010 21:29:25 +0000 (21:29 +0000)
ValueMapper.cpp ends up calling an out of line
__ZNK4llvm12PATypeHolder3getEv, which is a template and llvm-config
determines arbitrarily to use the one in libipo.  This sucks, but
keeping the #include is a reasonable workaround.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94103 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/ValueMapper.cpp

index 399021ce6c0b6ceede1a41f1f0fa9b0c9dd752b0..a6e6701d0736535b99d96bc2f64e3502223de3c6 100644 (file)
@@ -13,7 +13,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Transforms/Utils/ValueMapper.h"
-#include "llvm/DerivedTypes.h"
+#include "llvm/Type.h"
 #include "llvm/Constants.h"
 #include "llvm/Function.h"
 #include "llvm/Metadata.h"