[llvm] r235525 - Fix Windows build break: use LLVM_FUNCTION_NAME instead of __func__.

Krzysztof Parzyszek kparzysz at codeaurora.org
Wed Apr 22 10:19:45 PDT 2015


Author: kparzysz
Date: Wed Apr 22 12:19:44 2015
New Revision: 235525

URL: http://llvm.org/viewvc/llvm-project?rev=235525&view=rev
Log:
Fix Windows build break: use LLVM_FUNCTION_NAME instead of __func__.

Modified:
    llvm/trunk/lib/Target/Hexagon/HexagonFrameLowering.cpp
    llvm/trunk/lib/Target/Hexagon/HexagonISelLowering.cpp

Modified: llvm/trunk/lib/Target/Hexagon/HexagonFrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonFrameLowering.cpp?rev=235525&r1=235524&r2=235525&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonFrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonFrameLowering.cpp Wed Apr 22 12:19:44 2015
@@ -928,7 +928,7 @@ void HexagonFrameLowering::processFuncti
 bool HexagonFrameLowering::assignCalleeSavedSpillSlots(MachineFunction &MF,
       const TargetRegisterInfo *TRI, std::vector<CalleeSavedInfo> &CSI) const {
   const Function &F = *MF.getFunction();
-  DEBUG(dbgs() << __func__ << " on " << F.getName() << '\n');
+  DEBUG(dbgs() << LLVM_FUNCTION_NAME << " on " << F.getName() << '\n');
   MachineFrameInfo *MFI = MF.getFrameInfo();
   unsigned NR = TRI->getNumRegs();
   BitVector SRegs(NR);

Modified: llvm/trunk/lib/Target/Hexagon/HexagonISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonISelLowering.cpp?rev=235525&r1=235524&r2=235525&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonISelLowering.cpp Wed Apr 22 12:19:44 2015
@@ -802,7 +802,7 @@ HexagonTargetLowering::LowerDYNAMIC_STAC
     A = HFI.getStackAlignment();
 
   DEBUG({
-    dbgs () << __func__ << " Align: " << A << " Size: ";
+    dbgs () << LLVM_FUNCTION_NAME << " Align: " << A << " Size: ";
     Size.getNode()->dump(&DAG);
     dbgs() << "\n";
   });





More information about the llvm-commits mailing list