[llvm] r230700 - Remove DebugLoc::print(LLVMContext, raw_ostream), it was just
Eric Christopher
echristo at gmail.com
Thu Feb 26 15:39:24 PST 2015
>
>
> - void print(const LLVMContext &, raw_ostream &OS) const { print(OS); }
> + // void print(const LLVMContext &, raw_ostream &OS) const {
> print(OS); }
>
Just noticed this and fixed. Sorry about the double commits here.
-eric
> };
>
> } // end namespace llvm
>
> Modified: llvm/trunk/lib/CodeGen/MachineInstr.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/
> CodeGen/MachineInstr.cpp?rev=230700&r1=230699&r2=230700&view=diff
> ============================================================
> ==================
> --- llvm/trunk/lib/CodeGen/MachineInstr.cpp (original)
> +++ llvm/trunk/lib/CodeGen/MachineInstr.cpp Thu Feb 26 17:32:17 2015
> @@ -1512,12 +1512,6 @@ void MachineInstr::dump() const {
> #endif
> }
>
> -static void printDebugLoc(DebugLoc DL, const MachineFunction *MF,
> - raw_ostream &CommentOS) {
> - const LLVMContext &Ctx = MF->getFunction()->getContext();
> - DL.print(Ctx, CommentOS);
> -}
> -
> void MachineInstr::print(raw_ostream &OS, const TargetMachine *TM,
> bool SkipOpers) const {
> // We can be a bit tidier if we know the TargetMachine and/or
> MachineFunction.
> @@ -1738,7 +1732,7 @@ void MachineInstr::print(raw_ostream &OS
> DebugLoc InlinedAtDL = DebugLoc::getFromDILocation(InlinedAt);
> if (!InlinedAtDL.isUnknown() && MF) {
> OS << " inlined @[ ";
> - printDebugLoc(InlinedAtDL, MF, OS);
> + InlinedAtDL.print(OS);
> OS << " ]";
> }
> }
> @@ -1747,7 +1741,7 @@ void MachineInstr::print(raw_ostream &OS
> } else if (!debugLoc.isUnknown() && MF) {
> if (!HaveSemi) OS << ";";
> OS << " dbg:";
> - printDebugLoc(debugLoc, MF, OS);
> + debugLoc.print(OS);
> }
>
> OS << '\n';
>
> Modified: llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/
> Transforms/Vectorize/LoopVectorize.cpp?rev=230700&
> r1=230699&r2=230700&view=diff
> ============================================================
> ==================
> --- llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp (original)
> +++ llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp Thu Feb 26
> 17:32:17 2015
> @@ -488,7 +488,7 @@ static std::string getDebugLocString(con
> raw_string_ostream OS(Result);
> const DebugLoc LoopDbgLoc = L->getStartLoc();
> if (!LoopDbgLoc.isUnknown())
> - LoopDbgLoc.print(L->getHeader()->getContext(), OS);
> + LoopDbgLoc.print(OS);
> else
> // Just print the module name.
> OS << L->getHeader()->getParent()->getParent()->
> getModuleIdentifier();
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150226/3d424b61/attachment.html>
More information about the llvm-commits
mailing list