| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- //-------------------------------------------------------------------------------------------------------
- // Copyright (C) Microsoft. All rights reserved.
- // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
- //-------------------------------------------------------------------------------------------------------
- //----------------------------------------------------------------------------
- //
- // This file contains debug dumpers which can be called from the debugger.
- //
- //----------------------------------------------------------------------------
- #include "BackEnd.h"
- #if DBG_DUMP
- Func *CurrentFunc;
- ///----------------------------------------------------------------------------
- ///
- /// Dump the given instr
- ///
- ///----------------------------------------------------------------------------
- void dump(IR::Instr *instr)
- {
- instr->Dump();
- }
- ///----------------------------------------------------------------------------
- ///
- /// Dump the given instr, window/2 instrs before, and window/2 instrs after
- ///
- ///----------------------------------------------------------------------------
- void dump(IR::Instr *instr, int window)
- {
- instr->Dump(window);
- }
- ///----------------------------------------------------------------------------
- ///
- /// Dump the current function being compiled
- ///
- ///----------------------------------------------------------------------------
- void dump()
- {
- CurrentFunc->Dump();
- }
- #endif // DBG_DUMP
|