summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Module.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-02-15 21:59:32 +0000
committerGreg Clayton <gclayton@apple.com>2011-02-15 21:59:32 +0000
commit514487e80609921f8451a80965f65c3defbce725 (patch)
tree424c18a67cc664a7d276846b6d84a575f23c99f2 /lldb/source/Core/Module.cpp
parent41febc658b62f15983301ebff759c99909f2ecbf (diff)
downloadbcm5719-llvm-514487e80609921f8451a80965f65c3defbce725.tar.gz
bcm5719-llvm-514487e80609921f8451a80965f65c3defbce725.zip
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
Diffstat (limited to 'lldb/source/Core/Module.cpp')
-rw-r--r--lldb/source/Core/Module.cpp6
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;
OpenPOWER on IntegriCloud