Made lldb_private::ArchSpec contain much more than just an architecture. It
now, in addition to cpu type/subtype and architecture flavor, contains:
- byte order (big endian, little endian)
- address size in bytes
- llvm::Triple for true target triple support and for more powerful plug-in
selection.
llvm-svn: 125602
diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp
index 8346938..96cc4d7 100644
--- a/lldb/source/Core/Module.cpp
+++ b/lldb/source/Core/Module.cpp
@@ -102,11 +102,11 @@
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;