mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Fix it so llvm-objdump -arch does accept x86 and x86-64 as valid arch names.
PR12731. Patch by Meador Inge! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156444 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -510,6 +510,21 @@ namespace llvm {
|
||||
static const Target *lookupTarget(const std::string &Triple,
|
||||
std::string &Error);
|
||||
|
||||
/// lookupTarget - Lookup a target based on an architecture name
|
||||
/// and a target triple. If the architecture name is non-empty,
|
||||
/// then the lookup is done by architecture. Otherwise, the target
|
||||
/// triple is used.
|
||||
///
|
||||
/// \param ArchName - The architecture to use for finding a target.
|
||||
/// \param TheTriple - The triple to use for finding a target. The
|
||||
/// triple is updated with canonical architecture name if a lookup
|
||||
/// by architecture is done.
|
||||
/// \param Error - On failure, an error string describing why no target was
|
||||
/// found.
|
||||
static const Target *lookupTarget(const std::string &ArchName,
|
||||
Triple &TheTriple,
|
||||
std::string &Error);
|
||||
|
||||
/// getClosestTargetForJIT - Pick the best target that is compatible with
|
||||
/// the current host. If no close target can be found, this returns null
|
||||
/// and sets the Error string to a reason.
|
||||
|
||||
Reference in New Issue
Block a user