X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=utils%2FTableGen%2FTableGenBackend.cpp;h=87a1b3da11969720a5a4923a95d660cdb8066242;hb=f915253dfcfbe772ee04872544a4f012c6f851be;hp=161b2eeb607e7458a284fd0ea53f4043f4fc341e;hpb=01d45827a1e512f3b19ba857772bf02baa3c0c4e;p=oota-llvm.git diff --git a/utils/TableGen/TableGenBackend.cpp b/utils/TableGen/TableGenBackend.cpp index 161b2eeb607..87a1b3da119 100644 --- a/utils/TableGen/TableGenBackend.cpp +++ b/utils/TableGen/TableGenBackend.cpp @@ -1,10 +1,10 @@ //===- TableGenBackend.cpp - Base class for TableGen Backends ---*- C++ -*-===// -// +// // The LLVM Compiler Infrastructure // -// This file was developed by the LLVM research group and is distributed under -// the University of Illinois Open Source License. See LICENSE.TXT for details. -// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// //===----------------------------------------------------------------------===// // // This file provides useful services for TableGen backends... @@ -13,7 +13,7 @@ #include "TableGenBackend.h" #include "Record.h" -#include +using namespace llvm; void TableGenBackend::EmitSourceFileHeader(const std::string &Desc, std::ostream &OS) const { @@ -23,12 +23,3 @@ void TableGenBackend::EmitSourceFileHeader(const std::string &Desc, "----------------------------------===//\n\n"; } -/// getQualifiedName - Return the name of the specified record, with a -/// namespace qualifier if the record contains one. -/// -std::string TableGenBackend::getQualifiedName(Record *R) const { - std::string Namespace = R->getValueAsString("Namespace"); - if (Namespace.empty()) return R->getName(); - return Namespace + "::" + R->getName(); -} -