Author: tberghammer
Date: Mon Sep 21 05:08:49 2015
New Revision: 248146

URL: http://llvm.org/viewvc/llvm-project?rev=248146&view=rev
Log:
Use ClangASTContext for compile units with language eLanguageTypeMipsAssembler

Both GNU AS and LLVM emits language type DW_LANG_Mips_Assembler for
all assembly code.

Differential revision: http://reviews.llvm.org/D12962

Modified:
    lldb/trunk/source/Target/Target.cpp

Modified: lldb/trunk/source/Target/Target.cpp
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Target.cpp?rev=248146&r1=248145&r2=248146&view=diff
==============================================================================
--- lldb/trunk/source/Target/Target.cpp (original)
+++ lldb/trunk/source/Target/Target.cpp Mon Sep 21 05:08:49 2015
@@ -1898,6 +1898,7 @@ Target::GetScratchTypeSystemForLanguage
     if (Language::LanguageIsC(language)
        || Language::LanguageIsObjC(language)
        || Language::LanguageIsCPlusPlus(language)
+       || language == eLanguageTypeMipsAssembler // GNU AS and LLVM use it for 
all assembly code
        || language == eLanguageTypeUnknown)
         return GetScratchClangASTContext(create_on_demand);
     else


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to