summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-11-16 21:35:22 +0000
committerGreg Clayton <gclayton@apple.com>2012-11-16 21:35:22 +0000
commit38d880ac017ac6e7ba0319f8ce30478b3331647a (patch)
treefeed3f4491ff7148699606018c9f8a1dd2eeec3b
parent9d0a1ae946601ad874b65a615dd8aece54eabc32 (diff)
downloadbcm5719-llvm-38d880ac017ac6e7ba0319f8ce30478b3331647a.tar.gz
bcm5719-llvm-38d880ac017ac6e7ba0319f8ce30478b3331647a.zip
Fix lldb to compile with top of tree LLVM/clang.
llvm-svn: 168204
-rw-r--r--lldb/source/Expression/ClangExpressionParser.cpp2
-rw-r--r--lldb/source/Symbol/ClangASTContext.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Expression/ClangExpressionParser.cpp b/lldb/source/Expression/ClangExpressionParser.cpp
index 51e0b1934db..5acd4b680ce 100644
--- a/lldb/source/Expression/ClangExpressionParser.cpp
+++ b/lldb/source/Expression/ClangExpressionParser.cpp
@@ -245,7 +245,7 @@ ClangExpressionParser::ClangExpressionParser (ExecutionContextScope *exe_scope,
// Create the target instance.
m_compiler->setTarget(TargetInfo::CreateTargetInfo(m_compiler->getDiagnostics(),
- m_compiler->getTargetOpts()));
+ &m_compiler->getTargetOpts()));
assert (m_compiler->hasTarget());
diff --git a/lldb/source/Symbol/ClangASTContext.cpp b/lldb/source/Symbol/ClangASTContext.cpp
index 18304148c5a..99d96f7d98e 100644
--- a/lldb/source/Symbol/ClangASTContext.cpp
+++ b/lldb/source/Symbol/ClangASTContext.cpp
@@ -625,7 +625,7 @@ ClangASTContext::getTargetInfo()
{
// target_triple should be something like "x86_64-apple-macosx"
if (m_target_info_ap.get() == NULL && !m_target_triple.empty())
- m_target_info_ap.reset (TargetInfo::CreateTargetInfo(*getDiagnosticsEngine(), *getTargetOptions()));
+ m_target_info_ap.reset (TargetInfo::CreateTargetInfo(*getDiagnosticsEngine(), getTargetOptions()));
return m_target_info_ap.get();
}
OpenPOWER on IntegriCloud