Ignore:
Timestamp:
Nov 18, 2016, 1:46:55 PM (2 years ago)
Author:
nmedfort
Message:

Merged PabloFunction? and PabloKernel? classes. Updated projects where necessary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/printer_pablos.cpp

    r5202 r5217  
    77#include "printer_pablos.h"
    88#include <pablo/codegenstate.h>
     9#include <pablo/pablo_kernel.h>
    910#include <llvm/Support/raw_os_ostream.h>
    10 #include <iostream>
    1111
    1212using namespace pablo;
     
    1616const unsigned BlockIndenting = 2;
    1717
    18 void PabloPrinter::print(const PabloFunction & function, llvm::raw_ostream & out) {
    19     print(function.getEntryBlock(), out, true);
     18void PabloPrinter::print(const PabloKernel * kernel, llvm::raw_ostream & out) {
     19    print(kernel->getEntryBlock(), out, true);
    2020}
    2121
     
    146146    } else if (isa<Prototype>(expr)) {
    147147        out << cast<Prototype>(expr)->getName();
    148     } else if (isa<PabloFunction>(expr)) {
    149         out << cast<PabloFunction>(expr)->getName();
    150148    } else {
    151149        out << "???";
Note: See TracChangeset for help on using the changeset viewer.