summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/X86RecognizableInstr.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2013-07-28 21:28:02 +0000
committerCraig Topper <craig.topper@gmail.com>2013-07-28 21:28:02 +0000
commit9469e906a5d81bcd6ba0c7247a3f81abde90215f (patch)
tree3fef9e0c6d623273b077ff78e4d8aefc38090291 /llvm/utils/TableGen/X86RecognizableInstr.cpp
parent55d5e76fdb56a7c66c76374c6daaff86f06db5c5 (diff)
downloadbcm5719-llvm-9469e906a5d81bcd6ba0c7247a3f81abde90215f.tar.gz
bcm5719-llvm-9469e906a5d81bcd6ba0c7247a3f81abde90215f.zip
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.
llvm-svn: 187333
Diffstat (limited to 'llvm/utils/TableGen/X86RecognizableInstr.cpp')
-rw-r--r--llvm/utils/TableGen/X86RecognizableInstr.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/utils/TableGen/X86RecognizableInstr.cpp b/llvm/utils/TableGen/X86RecognizableInstr.cpp
index 309d5f0b1b4..7962f9b9834 100644
--- a/llvm/utils/TableGen/X86RecognizableInstr.cpp
+++ b/llvm/utils/TableGen/X86RecognizableInstr.cpp
@@ -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) {
OpenPOWER on IntegriCloud