diff options
Diffstat (limited to 'lldb/source/Core/Module.cpp')
-rw-r--r-- | lldb/source/Core/Module.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp index 83469382dac..96cc4d73258 100644 --- a/lldb/source/Core/Module.cpp +++ b/lldb/source/Core/Module.cpp @@ -102,11 +102,11 @@ Module::GetClangASTContext () if (m_did_init_ast == false) { ObjectFile * objfile = GetObjectFile(); - ConstString target_triple; - if (objfile && objfile->GetTargetTriple(target_triple)) + ArchSpec object_arch; + if (objfile && objfile->GetArchitecture(object_arch)) { m_did_init_ast = true; - m_ast.SetTargetTriple (target_triple.AsCString()); + m_ast.SetArchitecture (object_arch); } } return m_ast; |