Auto-registrate target

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14745 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2004-07-11 02:48:49 +00:00
parent 98599d098f
commit d36c970a11
11 changed files with 94 additions and 6 deletions

View File

@ -27,6 +27,7 @@
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/CodeGen/IntrinsicLowering.h"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Target/TargetMachineRegistry.h"
#include "llvm/Support/CallSite.h"
#include "llvm/Support/CFG.h"
#include "llvm/Support/GetElementPtrTypeIterator.h"
@ -40,6 +41,9 @@
using namespace llvm;
namespace {
// Register the target.
RegisterTarget<CTargetMachine> X("c", "C backend");
/// NameAllUsedStructs - This pass inserts names for any unnamed structure
/// types that are used by the program.
///