whitespace

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128905 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrew Trick 2011-04-05 18:41:31 +00:00
parent 0da9f13faa
commit a41af7aeef
2 changed files with 10 additions and 10 deletions

View File

@ -207,7 +207,7 @@ int main(int argc, char **argv) {
InitializeAllAsmParsers(); InitializeAllAsmParsers();
cl::ParseCommandLineOptions(argc, argv, "llvm system compiler\n"); cl::ParseCommandLineOptions(argc, argv, "llvm system compiler\n");
// Load the module to be compiled... // Load the module to be compiled...
SMDiagnostic Err; SMDiagnostic Err;
std::auto_ptr<Module> M; std::auto_ptr<Module> M;
@ -271,7 +271,7 @@ int main(int argc, char **argv) {
FeaturesStr = Features.getString(); FeaturesStr = Features.getString();
} }
std::auto_ptr<TargetMachine> std::auto_ptr<TargetMachine>
target(TheTarget->createTargetMachine(TheTriple.getTriple(), FeaturesStr)); target(TheTarget->createTargetMachine(TheTriple.getTriple(), FeaturesStr));
assert(target.get() && "Could not allocate target machine!"); assert(target.get() && "Could not allocate target machine!");
TargetMachine &Target = *target.get(); TargetMachine &Target = *target.get();

View File

@ -133,11 +133,11 @@ static cl::opt<bool>
AnalyzeOnly("analyze", cl::desc("Only perform analysis, no optimization")); AnalyzeOnly("analyze", cl::desc("Only perform analysis, no optimization"));
static cl::opt<bool> static cl::opt<bool>
PrintBreakpoints("print-breakpoints-for-testing", PrintBreakpoints("print-breakpoints-for-testing",
cl::desc("Print select breakpoints location for testing")); cl::desc("Print select breakpoints location for testing"));
static cl::opt<std::string> static cl::opt<std::string>
DefaultDataLayout("default-data-layout", DefaultDataLayout("default-data-layout",
cl::desc("data layout string to use if not specified by module"), cl::desc("data layout string to use if not specified by module"),
cl::value_desc("layout-string"), cl::init("")); cl::value_desc("layout-string"), cl::init(""));
@ -328,7 +328,7 @@ struct BasicBlockPassPrinter : public BasicBlockPass {
<< "': Pass " << PassToPrint->getPassName() << ":\n"; << "': Pass " << PassToPrint->getPassName() << ":\n";
// Get and print pass... // Get and print pass...
getAnalysisID<Pass>(PassToPrint->getTypeInfo()).print(Out, getAnalysisID<Pass>(PassToPrint->getTypeInfo()).print(Out,
BB.getParent()->getParent()); BB.getParent()->getParent());
return false; return false;
} }
@ -479,7 +479,7 @@ int main(int argc, char **argv) {
llvm_shutdown_obj Y; // Call llvm_shutdown() on exit. llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.
LLVMContext &Context = getGlobalContext(); LLVMContext &Context = getGlobalContext();
// Initialize passes // Initialize passes
PassRegistry &Registry = *PassRegistry::getPassRegistry(); PassRegistry &Registry = *PassRegistry::getPassRegistry();
initializeCore(Registry); initializeCore(Registry);
@ -491,7 +491,7 @@ int main(int argc, char **argv) {
initializeInstCombine(Registry); initializeInstCombine(Registry);
initializeInstrumentation(Registry); initializeInstrumentation(Registry);
initializeTarget(Registry); initializeTarget(Registry);
cl::ParseCommandLineOptions(argc, argv, cl::ParseCommandLineOptions(argc, argv,
"llvm .bc -> .bc modular optimizer and analysis printer\n"); "llvm .bc -> .bc modular optimizer and analysis printer\n");
@ -549,12 +549,12 @@ int main(int argc, char **argv) {
// Add an appropriate TargetLibraryInfo pass for the module's triple. // Add an appropriate TargetLibraryInfo pass for the module's triple.
TargetLibraryInfo *TLI = new TargetLibraryInfo(Triple(M->getTargetTriple())); TargetLibraryInfo *TLI = new TargetLibraryInfo(Triple(M->getTargetTriple()));
// The -disable-simplify-libcalls flag actually disables all builtin optzns. // The -disable-simplify-libcalls flag actually disables all builtin optzns.
if (DisableSimplifyLibCalls) if (DisableSimplifyLibCalls)
TLI->disableAllFunctions(); TLI->disableAllFunctions();
Passes.add(TLI); Passes.add(TLI);
// Add an appropriate TargetData instance for this module. // Add an appropriate TargetData instance for this module.
TargetData *TD = 0; TargetData *TD = 0;
const std::string &ModuleDataLayout = M.get()->getDataLayout(); const std::string &ModuleDataLayout = M.get()->getDataLayout();
@ -578,7 +578,7 @@ int main(int argc, char **argv) {
if (!Out) { if (!Out) {
if (OutputFilename.empty()) if (OutputFilename.empty())
OutputFilename = "-"; OutputFilename = "-";
std::string ErrorInfo; std::string ErrorInfo;
Out.reset(new tool_output_file(OutputFilename.c_str(), ErrorInfo, Out.reset(new tool_output_file(OutputFilename.c_str(), ErrorInfo,
raw_fd_ostream::F_Binary)); raw_fd_ostream::F_Binary));