Skip to content
Snippets Groups Projects
Commit e379f08b authored by Dan Gohman's avatar Dan Gohman
Browse files

More explicit keywords.

llvm-svn: 40589
parent e6656eb4
No related branches found
No related tags found
No related merge requests found
...@@ -115,13 +115,13 @@ public: ...@@ -115,13 +115,13 @@ public:
} }
/// Constructs a TargetData from a specification string. See init(). /// Constructs a TargetData from a specification string. See init().
TargetData(const std::string &TargetDescription) explicit TargetData(const std::string &TargetDescription)
: ImmutablePass((intptr_t)&ID) { : ImmutablePass((intptr_t)&ID) {
init(TargetDescription); init(TargetDescription);
} }
/// Initialize target data from properties stored in the module. /// Initialize target data from properties stored in the module.
TargetData(const Module *M); explicit TargetData(const Module *M);
TargetData(const TargetData &TD) : TargetData(const TargetData &TD) :
ImmutablePass((intptr_t)&ID), ImmutablePass((intptr_t)&ID),
......
...@@ -94,7 +94,7 @@ class Interpreter : public ExecutionEngine, public InstVisitor<Interpreter> { ...@@ -94,7 +94,7 @@ class Interpreter : public ExecutionEngine, public InstVisitor<Interpreter> {
std::vector<Function*> AtExitHandlers; std::vector<Function*> AtExitHandlers;
public: public:
Interpreter(Module *M); explicit Interpreter(Module *M);
~Interpreter(); ~Interpreter();
/// runAtExitHandlers - Run any functions registered by the program's calls to /// runAtExitHandlers - Run any functions registered by the program's calls to
......
...@@ -23,7 +23,7 @@ namespace llvm { ...@@ -23,7 +23,7 @@ namespace llvm {
class ARMFrameInfo : public TargetFrameInfo { class ARMFrameInfo : public TargetFrameInfo {
public: public:
ARMFrameInfo(const ARMSubtarget &ST) explicit ARMFrameInfo(const ARMSubtarget &ST)
: TargetFrameInfo(StackGrowsDown, ST.getStackAlignment(), 0) { : TargetFrameInfo(StackGrowsDown, ST.getStackAlignment(), 0) {
} }
}; };
......
...@@ -24,7 +24,7 @@ namespace llvm { ...@@ -24,7 +24,7 @@ namespace llvm {
class CallingConvEmitter : public TableGenBackend { class CallingConvEmitter : public TableGenBackend {
RecordKeeper &Records; RecordKeeper &Records;
public: public:
CallingConvEmitter(RecordKeeper &R) : Records(R) {} explicit CallingConvEmitter(RecordKeeper &R) : Records(R) {}
// run - Output the asmwriter, returning true on failure. // run - Output the asmwriter, returning true on failure.
void run(std::ostream &o); void run(std::ostream &o);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment