aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/SparcV9
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-03-13 00:24:00 +0000
committerChris Lattner <sabre@nondot.org>2004-03-13 00:24:00 +0000
commit317201d77354e6fc9547468ce827e1a7c30761d7 (patch)
tree17c59cf91f789591326f3f7b35df47f0e24a09a2 /lib/Target/SparcV9
parentbfe492b5c20a843028fb8e1736f81e703f789c1a (diff)
downloadexternal_llvm-317201d77354e6fc9547468ce827e1a7c30761d7.zip
external_llvm-317201d77354e6fc9547468ce827e1a7c30761d7.tar.gz
external_llvm-317201d77354e6fc9547468ce827e1a7c30761d7.tar.bz2
Rename the intrinsic enum values for llvm.va_* from Intrinsic::va_* to
Intrinsic::va*. This avoid conflicting with macros in the stdlib.h file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12356 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9')
-rw-r--r--lib/Target/SparcV9/InstrSelection/InstrSelection.cpp9
-rw-r--r--lib/Target/SparcV9/SparcV9InstrSelection.cpp6
2 files changed, 6 insertions, 9 deletions
diff --git a/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp b/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp
index 4ddc4ed..5441ae4 100644
--- a/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp
+++ b/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp
@@ -126,13 +126,10 @@ bool InstructionSelection::runOnFunction(Function &F) {
if (CallInst *CI = dyn_cast<CallInst>(I++))
if (Function *F = CI->getCalledFunction())
switch (F->getIntrinsicID()) {
-#undef va_start
-#undef va_copy
-#undef va_end
case Intrinsic::not_intrinsic:
- case Intrinsic::va_start:
- case Intrinsic::va_copy:
- case Intrinsic::va_end:
+ case Intrinsic::vastart:
+ case Intrinsic::vacopy:
+ case Intrinsic::vaend:
// We directly implement these intrinsics. Note that this knowledge
// is incestuously entangled with the code in
// SparcInstrSelection.cpp and must be updated when it is updated.
diff --git a/lib/Target/SparcV9/SparcV9InstrSelection.cpp b/lib/Target/SparcV9/SparcV9InstrSelection.cpp
index 8ca4e69..5a0d863 100644
--- a/lib/Target/SparcV9/SparcV9InstrSelection.cpp
+++ b/lib/Target/SparcV9/SparcV9InstrSelection.cpp
@@ -1398,7 +1398,7 @@ static bool CodeGenIntrinsic(Intrinsic::ID iid, CallInst &callInstr,
switch (iid) {
default:
assert(0 && "Unknown intrinsic function call should have been lowered!");
- case Intrinsic::va_start: {
+ case Intrinsic::vastart: {
// Get the address of the first incoming vararg argument on the stack
bool ignore;
Function* func = cast<Function>(callInstr.getParent()->getParent());
@@ -1412,10 +1412,10 @@ static bool CodeGenIntrinsic(Intrinsic::ID iid, CallInst &callInstr,
return true;
}
- case Intrinsic::va_end:
+ case Intrinsic::vaend:
return true; // no-op on SparcV9
- case Intrinsic::va_copy:
+ case Intrinsic::vacopy:
// Simple copy of current va_list (arg1) to new va_list (result)
mvec.push_back(BuildMI(V9::ORr, 3).
addMReg(target.getRegInfo().getZeroRegNum()).