mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 04:31:08 +00:00
Rename StringVector to StrVector (to be consistent with LLVMCConfigurationEmitter.cpp).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51741 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
35bca4116e
commit
aa3bb17fcc
@ -1,4 +1,4 @@
|
|||||||
//===--- Tools.h - The LLVM Compiler Driver ---------------------*- C++ -*-===//
|
//===--- Action.cpp - The LLVM Compiler Driver ------------------*- C++ -*-===//
|
||||||
//
|
//
|
||||||
// The LLVM Compiler Infrastructure
|
// The LLVM Compiler Infrastructure
|
||||||
//
|
//
|
||||||
@ -26,7 +26,7 @@ extern cl::opt<bool> VerboseMode;
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
int ExecuteProgram(const std::string& name,
|
int ExecuteProgram(const std::string& name,
|
||||||
const StringVector& args) {
|
const StrVector& args) {
|
||||||
sys::Path prog = sys::Program::FindProgramByName(name);
|
sys::Path prog = sys::Program::FindProgramByName(name);
|
||||||
|
|
||||||
if (prog.isEmpty())
|
if (prog.isEmpty())
|
||||||
@ -42,7 +42,7 @@ namespace {
|
|||||||
argv.reserve((args.size()+2));
|
argv.reserve((args.size()+2));
|
||||||
argv.push_back(name.c_str());
|
argv.push_back(name.c_str());
|
||||||
|
|
||||||
for (StringVector::const_iterator B = args.begin(), E = args.end();
|
for (StrVector::const_iterator B = args.begin(), E = args.end();
|
||||||
B!=E; ++B) {
|
B!=E; ++B) {
|
||||||
if (*B == ">") {
|
if (*B == ">") {
|
||||||
++B;
|
++B;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
//===--- Tools.h - The LLVM Compiler Driver ---------------------*- C++ -*-===//
|
//===--- Action.h - The LLVM Compiler Driver --------------------*- C++ -*-===//
|
||||||
//
|
//
|
||||||
// The LLVM Compiler Infrastructure
|
// The LLVM Compiler Infrastructure
|
||||||
//
|
//
|
||||||
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
namespace llvmc {
|
namespace llvmc {
|
||||||
|
|
||||||
typedef std::vector<std::string> StringVector;
|
typedef std::vector<std::string> StrVector;
|
||||||
|
|
||||||
/// Action - A class that encapsulates a single shell command.
|
/// Action - A class that encapsulates a single shell command.
|
||||||
class Action {
|
class Action {
|
||||||
@ -29,8 +29,7 @@ namespace llvmc {
|
|||||||
std::vector<std::string> Args_;
|
std::vector<std::string> Args_;
|
||||||
public:
|
public:
|
||||||
Action() {}
|
Action() {}
|
||||||
Action (const std::string& C,
|
Action (const std::string& C, const StrVector& A)
|
||||||
const StringVector& A)
|
|
||||||
: Command_(C), Args_(A)
|
: Command_(C), Args_(A)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user