[llvm-commits] [llvm-gcc-4.2] r99988 - /llvm-gcc-4.2/trunk/gcc/llvm-linker-hack.cpp
Chris Lattner
sabre at nondot.org
Tue Mar 30 21:39:37 PDT 2010
Author: lattner
Date: Tue Mar 30 23:39:36 2010
New Revision: 99988
URL: http://llvm.org/viewvc/llvm-project?rev=99988&view=rev
Log:
force irbuilder.cpp to be pulled into the llvm-gcc dylib when
built "apple style".
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-linker-hack.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-linker-hack.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-linker-hack.cpp?rev=99988&r1=99987&r2=99988&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-linker-hack.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-linker-hack.cpp Tue Mar 30 23:39:36 2010
@@ -33,6 +33,7 @@
#include "llvm/CodeGen/Passes.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/PrettyStackTrace.h"
+#include "llvm/Support/IRBuilder.h"
#include "llvm/Support/raw_os_ostream.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetRegistry.h"
@@ -97,6 +98,9 @@
llvm::DIFactory(*static_cast<llvm::Module *>(0));
std::string Err;
llvm::TargetRegistry::lookupTarget("", Err);
+
+ llvm::IRBuilder<> * volatile X;
+ X->getCurrentFunctionReturnType();
}
/* LLVM LOCAL end (ENTIRE FILE!) */
More information about the llvm-commits
mailing list