Skip to content

Commit 08344cd

Browse files
author
Tarun Prabhu
committed
Move functions to clang::driver::tools namespace
1 parent 24f7ed4 commit 08344cd

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

clang/lib/Driver/ToolChains/CommonArgs.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2961,8 +2961,8 @@ void tools::addMCModel(const Driver &D, const llvm::opt::ArgList &Args,
29612961
}
29622962
}
29632963

2964-
void driver::EscapeSpacesAndBackslashes(const char *Arg,
2965-
llvm::SmallVectorImpl<char> &Res) {
2964+
void tools::EscapeSpacesAndBackslashes(const char *Arg,
2965+
llvm::SmallVectorImpl<char> &Res) {
29662966
for (; *Arg; ++Arg) {
29672967
switch (*Arg) {
29682968
default:
@@ -2976,8 +2976,8 @@ void driver::EscapeSpacesAndBackslashes(const char *Arg,
29762976
}
29772977
}
29782978

2979-
const char *driver::RenderEscapedCommandLine(const ToolChain &TC,
2980-
const llvm::opt::ArgList &Args) {
2979+
const char *tools::RenderEscapedCommandLine(const ToolChain &TC,
2980+
const llvm::opt::ArgList &Args) {
29812981
const Driver &D = TC.getDriver();
29822982
const char *Exec = D.getClangProgramPath();
29832983

@@ -2997,10 +2997,10 @@ const char *driver::RenderEscapedCommandLine(const ToolChain &TC,
29972997
return Args.MakeArgString(Flags);
29982998
}
29992999

3000-
bool driver::ShouldRecordCommandLine(const ToolChain &TC,
3001-
const llvm::opt::ArgList &Args,
3002-
bool &FRecordCommandLine,
3003-
bool &GRecordCommandLine) {
3000+
bool tools::ShouldRecordCommandLine(const ToolChain &TC,
3001+
const llvm::opt::ArgList &Args,
3002+
bool &FRecordCommandLine,
3003+
bool &GRecordCommandLine) {
30043004
const Driver &D = TC.getDriver();
30053005
const llvm::Triple &Triple = TC.getEffectiveTriple();
30063006
const std::string &TripleStr = Triple.getTriple();

clang/lib/Driver/ToolChains/CommonArgs.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,6 @@ void addMCModel(const Driver &D, const llvm::opt::ArgList &Args,
233233
const llvm::Reloc::Model &RelocationModel,
234234
llvm::opt::ArgStringList &CmdArgs);
235235

236-
} // end namespace tools
237-
238236
/// Add backslashes to escape spaces and other backslashes.
239237
/// This is used for the space-separated argument list specified with
240238
/// the -dwarf-debug-flags option.
@@ -260,6 +258,7 @@ bool ShouldRecordCommandLine(const ToolChain &TC,
260258
bool &FRecordCommandLine,
261259
bool &GRecordCommandLine);
262260

261+
} // end namespace tools
263262
} // end namespace driver
264263
} // end namespace clang
265264

0 commit comments

Comments
 (0)