Symbol: fix build
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 7 Apr 2016 06:51:10 +0000 (06:51 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 7 Apr 2016 06:51:10 +0000 (06:51 +0000)
TargetOptions is ambiguous due to a definition in LLVM and in clang.  This was
exposed by SVN r265640.  Update to fix the build against the newer revision.

llvm-svn: 265644

lldb/source/Symbol/ClangASTContext.cpp

index b2050fb..69558eb 100644 (file)
@@ -717,11 +717,11 @@ ClangASTContext::getDiagnosticConsumer()
     return m_diagnostic_consumer_ap.get();
 }
 
-std::shared_ptr<TargetOptions> &
+std::shared_ptr<clang::TargetOptions> &
 ClangASTContext::getTargetOptions() {
     if (m_target_options_rp.get() == nullptr && !m_target_triple.empty())
     {
-        m_target_options_rp = std::make_shared<TargetOptions>();
+        m_target_options_rp = std::make_shared<clang::TargetOptions>();
         if (m_target_options_rp.get() != nullptr)
             m_target_options_rp->Triple = m_target_triple;
     }