[cfe-commits] r91978 - in /cfe/trunk: include/clang/AST/CharUnits.h lib/AST/CMakeLists.txt lib/AST/CharUnits.cpp
Ken Dyck
ken.dyck at onsemi.com
Tue Dec 22 18:44:11 PST 2009
Author: kjdyck
Date: Tue Dec 22 20:44:11 2009
New Revision: 91978
URL: http://llvm.org/viewvc/llvm-project?rev=91978&view=rev
Log:
Remove CharUnits::toString() to eliminate dependence on <string>.
Removed:
cfe/trunk/lib/AST/CharUnits.cpp
Modified:
cfe/trunk/include/clang/AST/CharUnits.h
cfe/trunk/lib/AST/CMakeLists.txt
Modified: cfe/trunk/include/clang/AST/CharUnits.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/CharUnits.h?rev=91978&r1=91977&r2=91978&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/CharUnits.h (original)
+++ cfe/trunk/include/clang/AST/CharUnits.h Tue Dec 22 20:44:11 2009
@@ -16,8 +16,6 @@
#include "llvm/System/DataTypes.h"
-#include <string>
-
namespace clang {
/// CharUnits - This is an opaque type for sizes expressed in character units.
@@ -136,9 +134,6 @@
// Conversions.
- /// toString - Convert to a string.
- std::string toString() const;
-
/// getRaw - Get the raw integer representation of this quantity.
RawType getRaw() const { return Quantity; }
Modified: cfe/trunk/lib/AST/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/CMakeLists.txt?rev=91978&r1=91977&r2=91978&view=diff
==============================================================================
--- cfe/trunk/lib/AST/CMakeLists.txt (original)
+++ cfe/trunk/lib/AST/CMakeLists.txt Tue Dec 22 20:44:11 2009
@@ -5,7 +5,6 @@
ASTConsumer.cpp
ASTContext.cpp
CXXInheritance.cpp
- CharUnits.cpp
Decl.cpp
DeclBase.cpp
DeclCXX.cpp
Removed: cfe/trunk/lib/AST/CharUnits.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/CharUnits.cpp?rev=91977&view=auto
==============================================================================
--- cfe/trunk/lib/AST/CharUnits.cpp (original)
+++ cfe/trunk/lib/AST/CharUnits.cpp (removed)
@@ -1,20 +0,0 @@
-//===--- CharUnits.cpp - Character units for sizes and offsets ------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-//
-// This file implements the CharUnits class.
-//
-//===----------------------------------------------------------------------===//
-
-#include "clang/AST/CharUnits.h"
-#include "llvm/ADT/StringExtras.h"
-using namespace clang;
-
-std::string CharUnits::toString() const {
- return llvm::itostr(Quantity);
-}
More information about the cfe-commits
mailing list