[PATCH] D62236: [TargetMachine] error message unsupported code model

Sjoerd Meijer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 22 03:39:00 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL361370: [TargetMachine] error message unsupported code model (authored by SjoerdMeijer, committed by ).
Herald added a subscriber: jrtc27.
Herald added a project: LLVM.

Changed prior to commit:
  https://reviews.llvm.org/D62236?vs=200660&id=200689#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62236/new/

https://reviews.llvm.org/D62236

Files:
  llvm/trunk/include/llvm/Target/TargetMachine.h
  llvm/trunk/lib/Target/PowerPC/PPCTargetMachine.cpp
  llvm/trunk/lib/Target/Sparc/SparcTargetMachine.cpp
  llvm/trunk/lib/Target/SystemZ/SystemZTargetMachine.cpp
  llvm/trunk/lib/Target/X86/X86TargetMachine.cpp


Index: llvm/trunk/include/llvm/Target/TargetMachine.h
===================================================================
--- llvm/trunk/include/llvm/Target/TargetMachine.h
+++ llvm/trunk/include/llvm/Target/TargetMachine.h
@@ -390,9 +390,9 @@
   if (CM) {
     // By default, targets do not support the tiny and kernel models.
     if (*CM == CodeModel::Tiny)
-      report_fatal_error("Target does not support the tiny CodeModel");
+      report_fatal_error("Target does not support the tiny CodeModel", false);
     if (*CM == CodeModel::Kernel)
-      report_fatal_error("Target does not support the kernel CodeModel");
+      report_fatal_error("Target does not support the kernel CodeModel", false);
     return *CM;
   }
   return Default;
Index: llvm/trunk/lib/Target/Sparc/SparcTargetMachine.cpp
===================================================================
--- llvm/trunk/lib/Target/Sparc/SparcTargetMachine.cpp
+++ llvm/trunk/lib/Target/Sparc/SparcTargetMachine.cpp
@@ -75,9 +75,9 @@
                            bool Is64Bit, bool JIT) {
   if (CM) {
     if (*CM == CodeModel::Tiny)
-      report_fatal_error("Target does not support the tiny CodeModel");
+      report_fatal_error("Target does not support the tiny CodeModel", false);
     if (*CM == CodeModel::Kernel)
-      report_fatal_error("Target does not support the kernel CodeModel");
+      report_fatal_error("Target does not support the kernel CodeModel", false);
     return *CM;
   }
   if (Is64Bit) {
Index: llvm/trunk/lib/Target/X86/X86TargetMachine.cpp
===================================================================
--- llvm/trunk/lib/Target/X86/X86TargetMachine.cpp
+++ llvm/trunk/lib/Target/X86/X86TargetMachine.cpp
@@ -195,7 +195,7 @@
                                                  bool JIT, bool Is64Bit) {
   if (CM) {
     if (*CM == CodeModel::Tiny)
-      report_fatal_error("Target does not support the tiny CodeModel");
+      report_fatal_error("Target does not support the tiny CodeModel", false);
     return *CM;
   }
   if (JIT)
Index: llvm/trunk/lib/Target/PowerPC/PPCTargetMachine.cpp
===================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCTargetMachine.cpp
+++ llvm/trunk/lib/Target/PowerPC/PPCTargetMachine.cpp
@@ -244,9 +244,9 @@
                                                  bool JIT) {
   if (CM) {
     if (*CM == CodeModel::Tiny)
-      report_fatal_error("Target does not support the tiny CodeModel");
+      report_fatal_error("Target does not support the tiny CodeModel", false);
     if (*CM == CodeModel::Kernel)
-      report_fatal_error("Target does not support the kernel CodeModel");
+      report_fatal_error("Target does not support the kernel CodeModel", false);
     return *CM;
   }
   if (!TT.isOSDarwin() && !JIT &&
Index: llvm/trunk/lib/Target/SystemZ/SystemZTargetMachine.cpp
===================================================================
--- llvm/trunk/lib/Target/SystemZ/SystemZTargetMachine.cpp
+++ llvm/trunk/lib/Target/SystemZ/SystemZTargetMachine.cpp
@@ -133,9 +133,9 @@
                              bool JIT) {
   if (CM) {
     if (*CM == CodeModel::Tiny)
-      report_fatal_error("Target does not support the tiny CodeModel");
+      report_fatal_error("Target does not support the tiny CodeModel", false);
     if (*CM == CodeModel::Kernel)
-      report_fatal_error("Target does not support the kernel CodeModel");
+      report_fatal_error("Target does not support the kernel CodeModel", false);
     return *CM;
   }
   if (JIT)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62236.200689.patch
Type: text/x-patch
Size: 3540 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190522/99372b44/attachment.bin>


More information about the llvm-commits mailing list