From: Krzysztof Parzyszek Date: Wed, 22 Apr 2015 17:19:44 +0000 (+0000) Subject: Fix Windows build break: use LLVM_FUNCTION_NAME instead of __func__. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=b4e6e4e78dab9208ed090567634363eb7753b45e;p=oota-llvm.git Fix Windows build break: use LLVM_FUNCTION_NAME instead of __func__. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235525 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Hexagon/HexagonFrameLowering.cpp b/lib/Target/Hexagon/HexagonFrameLowering.cpp index e61dbbd19db..ae16d01775a 100644 --- a/lib/Target/Hexagon/HexagonFrameLowering.cpp +++ b/lib/Target/Hexagon/HexagonFrameLowering.cpp @@ -928,7 +928,7 @@ void HexagonFrameLowering::processFunctionBeforeCalleeSavedScan( bool HexagonFrameLowering::assignCalleeSavedSpillSlots(MachineFunction &MF, const TargetRegisterInfo *TRI, std::vector &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); diff --git a/lib/Target/Hexagon/HexagonISelLowering.cpp b/lib/Target/Hexagon/HexagonISelLowering.cpp index 0a17abc6f64..734f0363df7 100644 --- a/lib/Target/Hexagon/HexagonISelLowering.cpp +++ b/lib/Target/Hexagon/HexagonISelLowering.cpp @@ -802,7 +802,7 @@ HexagonTargetLowering::LowerDYNAMIC_STACKALLOC(SDValue Op, A = HFI.getStackAlignment(); DEBUG({ - dbgs () << __func__ << " Align: " << A << " Size: "; + dbgs () << LLVM_FUNCTION_NAME << " Align: " << A << " Size: "; Size.getNode()->dump(&DAG); dbgs() << "\n"; });