From 1b731d5dbe66e095c8cb778c20cbfca09ed24c59 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Tue, 16 Jun 2009 20:12:29 +0000 Subject: Introduce new headers whose inclusion forces linking and initialization of all targets (InitializeAllTargets.h) or assembler printers (InitializeAllAsmPrinters.h). This is a step toward the elimination of relinked object files, so that we can build normal archives. llvm-svn: 73543 --- llvm/lib/Target/Alpha/AlphaTargetMachine.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'llvm/lib/Target/Alpha/AlphaTargetMachine.cpp') diff --git a/llvm/lib/Target/Alpha/AlphaTargetMachine.cpp b/llvm/lib/Target/Alpha/AlphaTargetMachine.cpp index 4c830541f16..66f72577044 100644 --- a/llvm/lib/Target/Alpha/AlphaTargetMachine.cpp +++ b/llvm/lib/Target/Alpha/AlphaTargetMachine.cpp @@ -31,6 +31,11 @@ int AlphaTargetMachineModule = 0; // Register the targets static RegisterTarget X("alpha", "Alpha [experimental]"); +// Force static initialization when called from llvm/InitializeAllTargets.h +namespace llvm { + void InitializeAlphaTarget() { } +} + const TargetAsmInfo *AlphaTargetMachine::createTargetAsmInfo() const { return new AlphaTargetAsmInfo(*this); } -- cgit v1.2.3