diff options
author | Dan Gohman <gohman@apple.com> | 2007-07-30 14:51:59 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-07-30 14:51:59 +0000 |
commit | e379f08b193f76f2426c180ec3ccf1527fd11ec6 (patch) | |
tree | adbe93af9d951482199ef22fb8f6b344029955e8 /llvm | |
parent | e6656eb4ad5a5157c1bc4b908817f2aba283111e (diff) | |
download | bcm5719-llvm-e379f08b193f76f2426c180ec3ccf1527fd11ec6.tar.gz bcm5719-llvm-e379f08b193f76f2426c180ec3ccf1527fd11ec6.zip |
More explicit keywords.
llvm-svn: 40589
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/Target/TargetData.h | 4 | ||||
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/Interpreter.h | 2 | ||||
-rw-r--r-- | llvm/lib/Target/ARM/ARMFrameInfo.h | 2 | ||||
-rw-r--r-- | llvm/utils/TableGen/CallingConvEmitter.h | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/llvm/include/llvm/Target/TargetData.h b/llvm/include/llvm/Target/TargetData.h index 5756079c40f..b51b519fb6d 100644 --- a/llvm/include/llvm/Target/TargetData.h +++ b/llvm/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/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h index 323885002ce..9ad837c31b4 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h +++ b/llvm/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/llvm/lib/Target/ARM/ARMFrameInfo.h b/llvm/lib/Target/ARM/ARMFrameInfo.h index c56640a3545..67ea7b6ce37 100644 --- a/llvm/lib/Target/ARM/ARMFrameInfo.h +++ b/llvm/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/llvm/utils/TableGen/CallingConvEmitter.h b/llvm/utils/TableGen/CallingConvEmitter.h index a0bfab3e75c..b63fc82fe04 100644 --- a/llvm/utils/TableGen/CallingConvEmitter.h +++ b/llvm/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); |