diff options
| author | Torok Edwin <edwintorok@gmail.com> | 2009-07-08 20:53:28 +0000 |
|---|---|---|
| committer | Torok Edwin <edwintorok@gmail.com> | 2009-07-08 20:53:28 +0000 |
| commit | fb8d6d5b585eaff2375db2dfd0f235e14c01a3d0 (patch) | |
| tree | 51caa27009170c24962a0ca61b34e351914e3852 /llvm/lib/Target/MSP430 | |
| parent | c9673d5baecca92a7f879e972de63b1e8b59aec8 (diff) | |
| download | bcm5719-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.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/Target/MSP430/MSP430ISelLowering.cpp | 10 |
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 = |

