summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvmc2/Tool.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvmc2/Tool.h')
-rw-r--r--llvm/tools/llvmc2/Tool.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/tools/llvmc2/Tool.h b/llvm/tools/llvmc2/Tool.h
index 5136468a43e..b4478f9f2f8 100644
--- a/llvm/tools/llvmc2/Tool.h
+++ b/llvm/tools/llvmc2/Tool.h
@@ -55,16 +55,17 @@ namespace llvmcc {
// Join tools have an input file list associated with them.
class JoinTool : public Tool {
public:
- void AddToJoinList(const llvm::sys::Path& P) { JoinList.push_back(P); }
- void ClearJoinList() { JoinList.clear(); }
+ void AddToJoinList(const llvm::sys::Path& P) { JoinList_.push_back(P); }
+ void ClearJoinList() { JoinList_.clear(); }
+ bool JoinListEmpty() const { return JoinList_.empty(); }
Action GenerateAction(const llvm::sys::Path& outFile) const
- { return GenerateAction(JoinList, outFile); }
- // We shouldn't shadow GenerateAction from the base class.
+ { return GenerateAction(JoinList_, outFile); }
+ // We shouldn't shadow base class's version of GenerateAction.
using Tool::GenerateAction;
private:
- PathVector JoinList;
+ PathVector JoinList_;
};
}
OpenPOWER on IntegriCloud