[Lldb-commits] [lldb] r248146 - Use ClangASTContext for compile units with language eLanguageTypeMipsAssembler
Tamas Berghammer via lldb-commits
lldb-commits at lists.llvm.org
Mon Sep 21 03:08:50 PDT 2015
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
More information about the lldb-commits
mailing list