зеркало из https://github.com/microsoft/clang-1.git
improve compatibility with GCC 4.4, patch by Michel Salim (PR3697)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65884 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
16167a6e3f
Коммит
3daed52a57
|
@ -16,6 +16,7 @@
|
|||
|
||||
#include "llvm/ADT/iterator.h"
|
||||
#include <cassert>
|
||||
#include <stdint.h>
|
||||
|
||||
namespace clang {
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include "clang/AST/Type.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include <algorithm>
|
||||
#include <cstdio>
|
||||
#include <functional>
|
||||
#include <vector>
|
||||
using namespace clang;
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/Bitcode/Serialize.h"
|
||||
#include "llvm/Bitcode/Deserialize.h"
|
||||
#include <cstdio>
|
||||
|
||||
using namespace clang;
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
#include "llvm/Bitcode/Serialize.h"
|
||||
#include "llvm/Bitcode/Deserialize.h"
|
||||
#include "llvm/Support/MemoryBuffer.h"
|
||||
#include <cstdio>
|
||||
|
||||
using namespace clang;
|
||||
|
||||
|
|
|
@ -497,7 +497,21 @@ public:
|
|||
virtual const char *getClobbers() const {
|
||||
return "~{dirflag},~{fpsr},~{flags}";
|
||||
}
|
||||
|
||||
virtual int HandleTargetOptions(std::string *StrArray, unsigned NumStrs,
|
||||
std::string &ErrorReason);
|
||||
};
|
||||
|
||||
/// HandleTargetOptions - Handle target-specific options like -msse2 and
|
||||
/// friends. An array of arguments is passed in: if they are all valid, this
|
||||
/// should handle them and return -1. If there is an error, the index of the
|
||||
/// invalid argument should be returned along with an optional error string.
|
||||
int X86TargetInfo::HandleTargetOptions(std::string *StrArray, unsigned NumStrs,
|
||||
std::string &ErrorReason) {
|
||||
if (NumStrs == 0)
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool
|
||||
X86TargetInfo::validateAsmConstraint(const char *&Name,
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
#include "llvm/ADT/SmallPtrSet.h"
|
||||
#include "llvm/System/Path.h"
|
||||
#include "llvm/Config/config.h"
|
||||
#include <cstdio>
|
||||
#include <vector>
|
||||
using namespace clang;
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#include "llvm/Support/DataTypes.h"
|
||||
#include "llvm/Support/MathExtras.h"
|
||||
#include "llvm/Support/MemoryBuffer.h"
|
||||
#include <cstdio>
|
||||
using namespace clang;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
#include "clang/Basic/IdentifierTable.h"
|
||||
#include "llvm/System/Path.h"
|
||||
#include "llvm/ADT/SmallString.h"
|
||||
#include <cstdio>
|
||||
using namespace clang;
|
||||
|
||||
HeaderSearch::HeaderSearch(FileManager &FM) : FileMgr(FM), FrameworkMap(64) {
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#include "clang/Basic/SourceManager.h"
|
||||
#include "clang/Basic/FileManager.h"
|
||||
#include "clang/Lex/LexDiagnostic.h"
|
||||
#include <cstdio>
|
||||
#include <ctime>
|
||||
using namespace clang;
|
||||
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/Support/MemoryBuffer.h"
|
||||
#include "llvm/Support/Streams.h"
|
||||
#include <cstdio>
|
||||
using namespace clang;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
Загрузка…
Ссылка в новой задаче