summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-14 01:20:40 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-14 01:20:40 +0000
commite01dc86d2a602d77b7280cb40890773623273b21 (patch)
tree54d71748a618476ecf54d68a29a4af3ff10a78d4 /clang/lib/Frontend/CompilerInstance.cpp
parent1a0dd2e30bac6a2c29eb0961fc0543bf76f05f72 (diff)
downloadbcm5719-llvm-e01dc86d2a602d77b7280cb40890773623273b21.tar.gz
bcm5719-llvm-e01dc86d2a602d77b7280cb40890773623273b21.zip
Move CompilerInstance::set* methods out-of-line.
llvm-svn: 88731
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index af3733d892b..2755a5a56d9 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -39,6 +39,38 @@ CompilerInstance::~CompilerInstance() {
delete LLVMContext;
}
+void CompilerInstance::setDiagnostics(Diagnostic *Value) {
+ Diagnostics.reset(Value);
+}
+
+void CompilerInstance::setDiagnosticClient(DiagnosticClient *Value) {
+ DiagClient.reset(Value);
+}
+
+void CompilerInstance::setTarget(TargetInfo *Value) {
+ Target.reset(Value);
+}
+
+void CompilerInstance::setFileManager(FileManager *Value) {
+ FileMgr.reset(Value);
+}
+
+void CompilerInstance::setSourceManager(SourceManager *Value) {
+ SourceMgr.reset(Value);
+}
+
+void CompilerInstance::setPreprocessor(Preprocessor *Value) {
+ PP.reset(Value);
+}
+
+void CompilerInstance::setASTContext(ASTContext *Value) {
+ Context.reset(Value);
+}
+
+void CompilerInstance::setCodeCompletionConsumer(CodeCompleteConsumer *Value) {
+ CompletionConsumer.reset(Value);
+}
+
// Diagnostics
static void SetUpBuildDumpLog(const DiagnosticOptions &DiagOpts,
OpenPOWER on IntegriCloud