================
@@ -491,3 +491,10 @@ bool CPPLanguageRuntime::IsSymbolARuntimeThunk(const
Symbol &symbol) {
return mangled_name.starts_with("_ZTh") || mangled_name.starts_with("_ZTv")
||
mangled_name.starts_with("_ZTc");
}
+
+bool CPPLanguageRuntime::ShouldUseMicrosoftABI(Process *process) {
+ return process->GetTarget()
+ .GetArchitecture()
+ .GetTriple()
+ .isWindowsMSVCEnvironment();
----------------
JDevlieghere wrote:
I think what you're suggesting is the most pragmatic solution. The alternative
is detangling the two and everywhere where we obtain a language runtime today,
you would have to specify a language *and an ABI* and the ABI would be tied
(and potentially shared) across modules. I think that's probably a lot of work
for little benefit, so I'm fine with going with the more pragmatic approach.
https://github.com/llvm/llvm-project/pull/168941
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits