diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-08-23 20:15:21 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-08-23 20:15:21 +0000 |
commit | 7801136b95d1fbe515b9655b73ada39b05a33559 (patch) | |
tree | ff75c7f27a25aeea99b1e06eb3dc96d955978bf9 /include/llvm/Support/CodeGen.h | |
parent | acc8f2d938dbf00c79c34f4541a5a05662964797 (diff) |
Some refactoring so TargetRegistry.h no longer has to include any files
from MC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138367 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/CodeGen.h')
-rw-r--r-- | include/llvm/Support/CodeGen.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/llvm/Support/CodeGen.h b/include/llvm/Support/CodeGen.h new file mode 100644 index 0000000000..41351dc73f --- /dev/null +++ b/include/llvm/Support/CodeGen.h @@ -0,0 +1,32 @@ +//===-- llvm/Support/CodeGen.h - CodeGen Concepts ---------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file define some types which define code generation concepts. For +// example, relocation model. +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_SUPPORT_CODEGEN_H +#define LLVM_SUPPORT_CODEGEN_H + +namespace llvm { + + // Relocation model types. + namespace Reloc { + enum Model { Default, Static, PIC_, DynamicNoPIC }; + } + + // Code model types. + namespace CodeModel { + enum Model { Default, JITDefault, Small, Kernel, Medium, Large }; + } + +} // end llvm namespace + +#endif |