mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
Remove use of sprintf added to X86 disassembler tablegen code. Send message with instruction name to errs() instead and use a generic message for the llvm_unreachable. Consistent with other places in this file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187333 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7f817029d5
commit
d953bcd487
@ -19,7 +19,6 @@
|
||||
#include "X86ModRMFilters.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
#include <string>
|
||||
#include <stdio.h>
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
@ -308,9 +307,8 @@ InstructionContext RecognizableInstr::insnContext() const {
|
||||
|
||||
if (HasEVEXPrefix) {
|
||||
if (HasVEX_LPrefix && HasEVEX_L2Prefix) {
|
||||
char msg[200];
|
||||
sprintf(msg, "Don't support VEX.L if EVEX_L2 is enabled: %s", Name.c_str());
|
||||
llvm_unreachable(msg);
|
||||
errs() << "Don't support VEX.L if EVEX_L2 is enabled: " << Name << "\n";
|
||||
llvm_unreachable("Don't support VEX.L if EVEX_L2 is enabled");
|
||||
}
|
||||
// VEX_L & VEX_W
|
||||
if (HasVEX_LPrefix && HasVEX_WPrefix) {
|
||||
|
Loading…
Reference in New Issue
Block a user