mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +00:00
* Move include/llvm/Analysis/SlotCalculator.h to include/llvm/SlotCalculator.h
because the slot calculator is already part of the VMCore library. * Rename incorporateMethod and purgeMethod to *Function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2154 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "llvm/Analysis/SlotCalculator.h"
|
||||
#include "llvm/SlotCalculator.h"
|
||||
#include "llvm/Analysis/ConstantsScanner.h"
|
||||
#include "llvm/Function.h"
|
||||
#include "llvm/GlobalVariable.h"
|
||||
@ -60,7 +60,7 @@ SlotCalculator::SlotCalculator(const Function *M, bool IgnoreNamed) {
|
||||
if (TheModule == 0) return; // Empty table...
|
||||
|
||||
processModule(); // Process module level stuff
|
||||
incorporateMethod(M); // Start out in incorporated state
|
||||
incorporateFunction(M); // Start out in incorporated state
|
||||
}
|
||||
|
||||
|
||||
@ -119,7 +119,7 @@ void SlotCalculator::processSymbolTableConstants(const SymbolTable *ST) {
|
||||
}
|
||||
|
||||
|
||||
void SlotCalculator::incorporateMethod(const Function *M) {
|
||||
void SlotCalculator::incorporateFunction(const Function *M) {
|
||||
assert(ModuleLevel.size() == 0 && "Module already incorporated!");
|
||||
|
||||
SC_DEBUG("begin processFunction!\n");
|
||||
@ -182,7 +182,7 @@ void SlotCalculator::incorporateMethod(const Function *M) {
|
||||
SC_DEBUG("end processFunction!\n");
|
||||
}
|
||||
|
||||
void SlotCalculator::purgeMethod() {
|
||||
void SlotCalculator::purgeFunction() {
|
||||
assert(ModuleLevel.size() != 0 && "Module not incorporated!");
|
||||
unsigned NumModuleTypes = ModuleLevel.size();
|
||||
|
||||
|
Reference in New Issue
Block a user