[cfe-commits] r39389 - /cfe/cfe/trunk/include/clang/Basic/TargetInfo.h

clattner at cs.uiuc.edu clattner at cs.uiuc.edu
Wed Jul 11 09:43:52 PDT 2007


Author: clattner
Date: Wed Jul 11 11:43:51 2007
New Revision: 39389

URL: http://llvm.org/viewvc/llvm-project?rev=39389&view=rev
Log:
add some more dummy target hooks

Modified:
    cfe/cfe/trunk/include/clang/Basic/TargetInfo.h

Modified: cfe/cfe/trunk/include/clang/Basic/TargetInfo.h
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/include/clang/Basic/TargetInfo.h?rev=39389&r1=39388&r2=39389&view=diff

==============================================================================
--- cfe/cfe/trunk/include/clang/Basic/TargetInfo.h (original)
+++ cfe/cfe/trunk/include/clang/Basic/TargetInfo.h Wed Jul 11 11:43:51 2007
@@ -96,6 +96,28 @@
   /// target set to the specified buffer.
   void getTargetDefines(std::vector<char> &DefineBuffer);
   
+  /// isCharSigned - Return true if 'char' is 'signed char' or false if it is
+  /// treated as 'unsigned char'.  This is implementation defined according to
+  /// C99 6.2.5p15.  In our implementation, this is target-specific.
+  bool isCharSigned(SourceLocation Loc) {
+    // FIXME: implement correctly.
+    return true;
+  }
+  
+  /// getCharWidth - Return the size of 'char', 'signed char' and
+  /// 'unsigned char' for this target, in bits.  
+  unsigned getCharWidth(SourceLocation Loc) {
+    // FIXME: implement correctly.
+    return 8;
+  }
+  
+  /// getIntWidth - Return the size of 'signed int' and 'unsigned int' for this
+  /// target, in bits.  
+  unsigned getIntWidth(SourceLocation Loc) {
+    // FIXME: implement correctly.
+    return 32;
+  }
+  
   /// getWCharWidth - Return the size of wchar_t in bytes.
   ///
   unsigned getWCharWidth(SourceLocation Loc) {





More information about the cfe-commits mailing list