aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Target/TargetData.h4
-rw-r--r--lib/ExecutionEngine/Interpreter/Interpreter.h2
-rw-r--r--lib/Target/ARM/ARMFrameInfo.h2
-rw-r--r--utils/TableGen/CallingConvEmitter.h2
4 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm/Target/TargetData.h b/include/llvm/Target/TargetData.h
index 5756079..b51b519 100644
--- a/include/llvm/Target/TargetData.h
+++ b/include/llvm/Target/TargetData.h
@@ -115,13 +115,13 @@ public:
}
/// Constructs a TargetData from a specification string. See init().
- TargetData(const std::string &TargetDescription)
+ explicit TargetData(const std::string &TargetDescription)
: ImmutablePass((intptr_t)&ID) {
init(TargetDescription);
}
/// Initialize target data from properties stored in the module.
- TargetData(const Module *M);
+ explicit TargetData(const Module *M);
TargetData(const TargetData &TD) :
ImmutablePass((intptr_t)&ID),
diff --git a/lib/ExecutionEngine/Interpreter/Interpreter.h b/lib/ExecutionEngine/Interpreter/Interpreter.h
index 3238850..9ad837c 100644
--- a/lib/ExecutionEngine/Interpreter/Interpreter.h
+++ b/lib/ExecutionEngine/Interpreter/Interpreter.h
@@ -94,7 +94,7 @@ class Interpreter : public ExecutionEngine, public InstVisitor<Interpreter> {
std::vector<Function*> AtExitHandlers;
public:
- Interpreter(Module *M);
+ explicit Interpreter(Module *M);
~Interpreter();
/// runAtExitHandlers - Run any functions registered by the program's calls to
diff --git a/lib/Target/ARM/ARMFrameInfo.h b/lib/Target/ARM/ARMFrameInfo.h
index c56640a..67ea7b6 100644
--- a/lib/Target/ARM/ARMFrameInfo.h
+++ b/lib/Target/ARM/ARMFrameInfo.h
@@ -23,7 +23,7 @@ namespace llvm {
class ARMFrameInfo : public TargetFrameInfo {
public:
- ARMFrameInfo(const ARMSubtarget &ST)
+ explicit ARMFrameInfo(const ARMSubtarget &ST)
: TargetFrameInfo(StackGrowsDown, ST.getStackAlignment(), 0) {
}
};
diff --git a/utils/TableGen/CallingConvEmitter.h b/utils/TableGen/CallingConvEmitter.h
index a0bfab3..b63fc82 100644
--- a/utils/TableGen/CallingConvEmitter.h
+++ b/utils/TableGen/CallingConvEmitter.h
@@ -24,7 +24,7 @@ namespace llvm {
class CallingConvEmitter : public TableGenBackend {
RecordKeeper &Records;
public:
- CallingConvEmitter(RecordKeeper &R) : Records(R) {}
+ explicit CallingConvEmitter(RecordKeeper &R) : Records(R) {}
// run - Output the asmwriter, returning true on failure.
void run(std::ostream &o);