mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Only gather frame info if debug or eh.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33639 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
#include "llvm/ADT/UniqueVector.h"
|
||||
#include "llvm/GlobalValue.h"
|
||||
#include "llvm/Pass.h"
|
||||
#include "llvm/Target/TargetOptions.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
@@ -1025,6 +1026,10 @@ public:
|
||||
///
|
||||
bool hasDebugInfo() const { return !CompileUnits.empty(); }
|
||||
|
||||
/// needsFrameInfo - Returns true if we need to gather callee-saved register
|
||||
/// move info for the frame.
|
||||
bool needsFrameInfo() const { return hasDebugInfo() || ExceptionHandling; }
|
||||
|
||||
/// NextLabelID - Return the next unique label id.
|
||||
///
|
||||
unsigned NextLabelID() {
|
||||
|
||||
Reference in New Issue
Block a user