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.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@125602 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Symbol/UnwindTable.cpp b/source/Symbol/UnwindTable.cpp
index 697098d..4b30980 100644
--- a/source/Symbol/UnwindTable.cpp
+++ b/source/Symbol/UnwindTable.cpp
@@ -58,12 +58,11 @@
}
ArchSpec arch;
- ConstString str;
- m_object_file.GetTargetTriple (str);
- arch.SetArchFromTargetTriple (str.GetCString());
- m_assembly_profiler = UnwindAssemblyProfiler::FindPlugin (arch);
-
- m_initialized = true;
+ if (m_object_file.GetArchitecture (arch))
+ {
+ m_assembly_profiler = UnwindAssemblyProfiler::FindPlugin (arch);
+ m_initialized = true;
+ }
}
UnwindTable::~UnwindTable ()