mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Make sure to print a stack trace whenever an error signal is delivered to
the tool. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11633 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f73b4ca7f9
commit
364d1203e7
@ -19,6 +19,7 @@
|
||||
#include "llvm/Transforms/IPO.h"
|
||||
#include "llvm/Target/TargetData.h"
|
||||
#include "Support/CommandLine.h"
|
||||
#include "Support/Signals.h"
|
||||
#include <memory>
|
||||
#include <fstream>
|
||||
using namespace llvm;
|
||||
@ -42,6 +43,7 @@ ExtractFunc("func", cl::desc("Specify function to extract"), cl::init("main"),
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
cl::ParseCommandLineOptions(argc, argv, " llvm extractor\n");
|
||||
PrintStackTraceOnErrorSignal();
|
||||
|
||||
std::auto_ptr<Module> M(ParseBytecodeFile(InputFilename));
|
||||
if (M.get() == 0) {
|
||||
|
@ -107,6 +107,7 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
cl::ParseCommandLineOptions(argc, argv, " llvm .s -> .o assembler for GCC\n");
|
||||
PrintStackTraceOnErrorSignal();
|
||||
|
||||
std::auto_ptr<Module> M;
|
||||
try {
|
||||
|
@ -195,6 +195,7 @@ void RemoveEnv(const char * name, char ** const envp) {
|
||||
|
||||
int main(int argc, char **argv, char **envp) {
|
||||
cl::ParseCommandLineOptions(argc, argv, " llvm linker for GCC\n");
|
||||
PrintStackTraceOnErrorSignal();
|
||||
|
||||
std::string ModuleID("gccld-output");
|
||||
std::auto_ptr<Module> Composite(new Module(ModuleID));
|
||||
|
@ -69,7 +69,8 @@ GetFileNameRoot(const std::string &InputFilename)
|
||||
//
|
||||
int main(int argc, char **argv) {
|
||||
cl::ParseCommandLineOptions(argc, argv, " llvm system compiler\n");
|
||||
|
||||
PrintStackTraceOnErrorSignal();
|
||||
|
||||
// Load the module to be compiled...
|
||||
std::auto_ptr<Module> M(ParseBytecodeFile(InputFilename));
|
||||
if (M.get() == 0) {
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include "llvm/ExecutionEngine/ExecutionEngine.h"
|
||||
#include "llvm/ExecutionEngine/GenericValue.h"
|
||||
#include "Support/CommandLine.h"
|
||||
#include "Support/Signals.h"
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
@ -46,6 +47,7 @@ namespace {
|
||||
int main(int argc, char **argv, char * const *envp) {
|
||||
cl::ParseCommandLineOptions(argc, argv,
|
||||
" llvm interpreter & dynamic compiler\n");
|
||||
PrintStackTraceOnErrorSignal();
|
||||
|
||||
// Load the bytecode...
|
||||
std::string ErrorMsg;
|
||||
|
@ -19,6 +19,7 @@
|
||||
#include "llvm/Transforms/IPO.h"
|
||||
#include "llvm/Target/TargetData.h"
|
||||
#include "Support/CommandLine.h"
|
||||
#include "Support/Signals.h"
|
||||
#include <memory>
|
||||
#include <fstream>
|
||||
using namespace llvm;
|
||||
@ -42,6 +43,7 @@ ExtractFunc("func", cl::desc("Specify function to extract"), cl::init("main"),
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
cl::ParseCommandLineOptions(argc, argv, " llvm extractor\n");
|
||||
PrintStackTraceOnErrorSignal();
|
||||
|
||||
std::auto_ptr<Module> M(ParseBytecodeFile(InputFilename));
|
||||
if (M.get() == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user