diff options
author | Chris Lattner <sabre@nondot.org> | 2001-07-22 04:40:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-07-22 04:40:02 +0000 |
commit | aceb9132b7c0f2b22a2e51d523d0bd46f2cb3817 (patch) | |
tree | d3b24eb01110102a9649cfd973933c1b80ac27f7 /include/llvm/LLC | |
parent | c21d4fcb202b613e2ebe95684362b8c9b66d8034 (diff) | |
download | llvm-aceb9132b7c0f2b22a2e51d523d0bd46f2cb3817.tar.gz llvm-aceb9132b7c0f2b22a2e51d523d0bd46f2cb3817.tar.bz2 llvm-aceb9132b7c0f2b22a2e51d523d0bd46f2cb3817.tar.xz |
Privatize LLCOptions. It had no business being visible to the entire
program.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/LLC')
-rw-r--r-- | include/llvm/LLC/CompileContext.h | 42 |
1 files changed, 4 insertions, 38 deletions
diff --git a/include/llvm/LLC/CompileContext.h b/include/llvm/LLC/CompileContext.h index 91a448b62d..29e1577792 100644 --- a/include/llvm/LLC/CompileContext.h +++ b/include/llvm/LLC/CompileContext.h @@ -13,57 +13,23 @@ #ifndef LLVM_LLC_COMPILECONTEXT_H #define LLVM_LLC_COMPILECONTEXT_H -//************************** System Include Files **************************/ - -#include <string> - -//*************************** User Include Files ***************************/ - -#include "llvm/CodeGen/Sparc.h" -#include "llvm/LLC/LLCOptions.h" - -//************************** Forward Declarations **************************/ - -class ProgramOptions; +#include "llvm/Support/Unique.h" class TargetMachine; - //--------------------------------------------------------------------------- // class CompileContext //--------------------------------------------------------------------------- -class CompileContext: public Unique -{ +class CompileContext: public Unique { private: - LLCOptions* options; TargetMachine* targetMachine; public: - /*ctor*/ CompileContext (int argc, const char **argv, const char** envp); - /*dtor*/ virtual ~CompileContext (); - - const LLCOptions& getOptions () const { return *options; } + CompileContext(TargetMachine *Target) : targetMachine(Target) {} + ~CompileContext(); const TargetMachine& getTarget () const { return *targetMachine; } TargetMachine& getTarget () { return *targetMachine; } }; - -inline -CompileContext::CompileContext(int argc, const char **argv, const char** envp) -{ - options = new LLCOptions(argc, argv, envp); - targetMachine = new UltraSparc; -} - - -inline -CompileContext::~CompileContext() -{ - delete options; - delete targetMachine; -} - -//**************************************************************************/ - #endif |