diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-07-01 15:12:53 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-07-01 15:12:53 +0000 |
commit | a3844922f685620002412df0a88d22393e5c1241 (patch) | |
tree | 29f676269e69dc9a85367aec4aa997e2805612ff /lib/Basic/Targets.cpp | |
parent | 7154a77e7c1f23418342d3b72836ab504aa7821e (diff) |
Two fixes to make Clang build on Visual C++ (again), from Alisdair Meredith.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74606 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/Targets.cpp')
-rw-r--r-- | lib/Basic/Targets.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index 88dd6f797b..561dc57ef2 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -62,17 +62,17 @@ static void DefineStd(std::vector<char> &Buf, const char *MacroName, // Defines specific to certain operating systems. //===----------------------------------------------------------------------===// namespace { -template<typename TargetInfo> -class OSTargetInfo : public TargetInfo { +template<typename TgtInfo> +class OSTargetInfo : public TgtInfo { protected: virtual void getOSDefines(const LangOptions &Opts, const char *Triple, std::vector<char> &Defines) const=0; public: - OSTargetInfo(const std::string& triple) : TargetInfo(triple) {} + OSTargetInfo(const std::string& triple) : TgtInfo(triple) {} virtual void getTargetDefines(const LangOptions &Opts, std::vector<char> &Defines) const { - TargetInfo::getTargetDefines(Opts, Defines); - getOSDefines(Opts, TargetInfo::getTargetTriple(), Defines); + TgtInfo::getTargetDefines(Opts, Defines); + getOSDefines(Opts, TgtInfo::getTargetTriple(), Defines); } }; |