[Lldb-commits] [PATCH] D12962: Use ClangASTContext for compile units with language eLanguageTypeMipsAssembler
Tamas Berghammer via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 18 07:29:30 PDT 2015
tberghammer created this revision.
tberghammer added reviewers: jingham, dawn.
tberghammer added a subscriber: lldb-commits.
Use ClangASTContext for compile units with language eLanguageTypeMipsAssembler
Both GNU AS and LLVM emits language type DW_LANG_Mips_Assembler for all assembly code.
http://reviews.llvm.org/D12962
Files:
source/Target/Target.cpp
Index: source/Target/Target.cpp
===================================================================
--- source/Target/Target.cpp
+++ source/Target/Target.cpp
@@ -1898,6 +1898,7 @@
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12962.35083.patch
Type: text/x-patch
Size: 532 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150918/ac7db61f/attachment.bin>
More information about the lldb-commits
mailing list