summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/MSP430
diff options
context:
space:
mode:
authorTorok Edwin <edwintorok@gmail.com>2009-07-08 20:53:28 +0000
committerTorok Edwin <edwintorok@gmail.com>2009-07-08 20:53:28 +0000
commitfb8d6d5b585eaff2375db2dfd0f235e14c01a3d0 (patch)
tree51caa27009170c24962a0ca61b34e351914e3852 /llvm/lib/Target/MSP430
parentc9673d5baecca92a7f879e972de63b1e8b59aec8 (diff)
downloadbcm5719-llvm-fb8d6d5b585eaff2375db2dfd0f235e14c01a3d0.tar.gz
bcm5719-llvm-fb8d6d5b585eaff2375db2dfd0f235e14c01a3d0.zip
Implement changes from Chris's feedback.
Finish converting lib/Target. llvm-svn: 75043
Diffstat (limited to 'llvm/lib/Target/MSP430')
-rw-r--r--llvm/lib/Target/MSP430/MSP430ISelDAGToDAG.cpp2
-rw-r--r--llvm/lib/Target/MSP430/MSP430ISelLowering.cpp10
2 files changed, 7 insertions, 5 deletions
diff --git a/llvm/lib/Target/MSP430/MSP430ISelDAGToDAG.cpp b/llvm/lib/Target/MSP430/MSP430ISelDAGToDAG.cpp
index bf49ec0bff4..6dd3b2a2548 100644
--- a/llvm/lib/Target/MSP430/MSP430ISelDAGToDAG.cpp
+++ b/llvm/lib/Target/MSP430/MSP430ISelDAGToDAG.cpp
@@ -28,6 +28,8 @@
#include "llvm/Target/TargetLowering.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Debug.h"
+#include "llvm/Support/ErrorHandling.h"
+#include "llvm/Support/raw_ostream.h"
using namespace llvm;
/// MSP430DAGToDAGISel - MSP430 specific code to select MSP430 machine
diff --git a/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp b/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp
index 0fd96cc00eb..10d4457e791 100644
--- a/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp
+++ b/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp
@@ -193,11 +193,11 @@ SDValue MSP430TargetLowering::LowerCCCArguments(SDValue Op,
switch (RegVT.getSimpleVT()) {
default:
{
- std::string msg;
- raw_string_ostream Msg(msg);
- Msg << "LowerFORMAL_ARGUMENTS Unhandled argument type: "
- << RegVT.getSimpleVT();
- llvm_report_error(Msg.str());
+#ifndef NDEBUG
+ cerr << "LowerFORMAL_ARGUMENTS Unhandled argument type: "
+ << RegVT.getSimpleVT() << "\n";
+#endif
+ llvm_unreachable();
}
case MVT::i16:
unsigned VReg =
OpenPOWER on IntegriCloud