зеркало из https://github.com/microsoft/clang-1.git
Factor out MIPS macro definitions common for all MIPS targets.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162852 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
48def65d1c
Коммит
d4935a0fbe
|
@ -3703,6 +3703,10 @@ public:
|
|||
|
||||
virtual void getArchDefines(const LangOptions &Opts,
|
||||
MacroBuilder &Builder) const {
|
||||
DefineStd(Builder, "mips", Opts);
|
||||
Builder.defineMacro("_mips");
|
||||
Builder.defineMacro("__REGISTER_PREFIX__", "");
|
||||
|
||||
switch (FloatABI) {
|
||||
case HardFloat:
|
||||
Builder.defineMacro("__mips_hard_float", Twine(1));
|
||||
|
@ -3924,11 +3928,8 @@ public:
|
|||
}
|
||||
virtual void getTargetDefines(const LangOptions &Opts,
|
||||
MacroBuilder &Builder) const {
|
||||
DefineStd(Builder, "mips", Opts);
|
||||
Builder.defineMacro("_mips");
|
||||
DefineStd(Builder, "MIPSEB", Opts);
|
||||
Builder.defineMacro("_MIPSEB");
|
||||
Builder.defineMacro("__REGISTER_PREFIX__", "");
|
||||
getArchDefines(Opts, Builder);
|
||||
}
|
||||
};
|
||||
|
@ -3942,11 +3943,8 @@ public:
|
|||
}
|
||||
virtual void getTargetDefines(const LangOptions &Opts,
|
||||
MacroBuilder &Builder) const {
|
||||
DefineStd(Builder, "mips", Opts);
|
||||
Builder.defineMacro("_mips");
|
||||
DefineStd(Builder, "MIPSEL", Opts);
|
||||
Builder.defineMacro("_MIPSEL");
|
||||
Builder.defineMacro("__REGISTER_PREFIX__", "");
|
||||
getArchDefines(Opts, Builder);
|
||||
}
|
||||
};
|
||||
|
@ -4051,11 +4049,8 @@ public:
|
|||
}
|
||||
virtual void getTargetDefines(const LangOptions &Opts,
|
||||
MacroBuilder &Builder) const {
|
||||
DefineStd(Builder, "mips", Opts);
|
||||
Builder.defineMacro("_mips");
|
||||
DefineStd(Builder, "MIPSEB", Opts);
|
||||
Builder.defineMacro("_MIPSEB");
|
||||
Builder.defineMacro("__REGISTER_PREFIX__", "");
|
||||
getArchDefines(Opts, Builder);
|
||||
}
|
||||
};
|
||||
|
@ -4078,11 +4073,8 @@ public:
|
|||
}
|
||||
virtual void getTargetDefines(const LangOptions &Opts,
|
||||
MacroBuilder &Builder) const {
|
||||
DefineStd(Builder, "mips", Opts);
|
||||
Builder.defineMacro("_mips");
|
||||
DefineStd(Builder, "MIPSEL", Opts);
|
||||
Builder.defineMacro("_MIPSEL");
|
||||
Builder.defineMacro("__REGISTER_PREFIX__", "");
|
||||
getArchDefines(Opts, Builder);
|
||||
}
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче